bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.87k stars 2.09k forks source link

cannot fetch witness and inner_witness_asm from tx endpoint #2690

Open tima-t opened 4 years ago

tima-t commented 4 years ago

I am using the bitcoin-node package and I have synced node on mainnet. My Bitcoin node is using this version: https://bitcoin.org/bin/bitcoin-core-0.19.0.1/bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz

When I hit the endpoint: api/BTC/mainnet/tx/cb7654acc67896c74df0ef08b5abf8661b45989c9f548eac89e924eeb2fb6c37/populated

I do not receive witness and inner_witness_asm, however when I use this url: https://blockstream.info/api/tx/cb7654acc67896c74df0ef08b5abf8661b45989c9f548eac89e924eeb2fb6c37

I do receive this properties.

Is this some configuration in the node package or some configuration of the btc node?

Droppix commented 4 years ago

same question. Any response ?

micahriggan commented 4 years ago

https://blockstream.info/api/tx/cb7654acc67896c74df0ef08b5abf8661b45989c9f548eac89e924eeb2fb6c37

I don't believe this blockstream api is using bitcore-node?

https://github.com/Blockstream/esplora https://github.com/Blockstream/esplora/blob/master/API.md

This appears to be their project

Droppix commented 4 years ago

Most of the blockchains, provide the vin and the vout (for address, blocks, transactions) which are very similar (cf: https://testnet.litecore.io/api, https://blockstream.info/testnet/api, https://rest.bitcoin.com), I think it would be interesting that api.bitcore.io, do the same...