3
3
Is there any Web API available for us to query Blockchain data in hex format?
The format should follow the standard (https://en.bitcoin.it/wiki/Block#Block_structure) structure rather than JSON.
3
3
Is there any Web API available for us to query Blockchain data in hex format?
The format should follow the standard (https://en.bitcoin.it/wiki/Block#Block_structure) structure rather than JSON.
6
What kind of API do you want? Do you mean API with your local Bitcoin Core or do you need web-API?
Have a look to http://webbtc.com/block/000000000000000001f942eb4bfa0aeccb6a14c268f4c72d5fff17270da771b9 (this is an example)
It is possible to download block as [json] / [hex] / [binary] there if you know the hash of the block
UPDATE (december'17): block in raw hex example : https://blockchain.info/block/000000000000000000a7b4999c723ed9f308425708577c76827ade51062e135a?format=hex
1
Blockchain Data API https://www.blockchain.com/api/blockchain_api:
Single Block
https://blockchain.info/rawblock/$block_hash- You can also request the block to return in binary form (Hex encoded) using ?format=hex
Suffix the above url with .hex, and you'll get the raw block hex. If you use .json, you the parsed block, transactions and all. Not many sites let you get at the block hex, so I believe this is the correct answer. – karimkorun – 2015-05-29T01:39:46.043
2Unfortunately, webbtc.com isn't up to date anymore (last block from 2016). Is there a new API available? Thank you! – A.c – 2017-12-02T14:22:41.670
1answer updated. – amaclin – 2017-12-02T17:55:26.193
At least webbtc is opensource, can set up own instance. – weston – 2018-05-10T11:39:30.203