I can use getblock
json rpc method to get parsed block details, however I need the actual raw data.
Is there any way to get raw block data using Bitcoin Core?
I can use getblock
json rpc method to get parsed block details, however I need the actual raw data.
Is there any way to get raw block data using Bitcoin Core?
There's a boolean parameter to that RPC call that'll return it as a hex string representing the binary contents of the block.
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'
getblock 'hash' 0
should return what you want.
blocks/index
directory to locate the block data within the blk*.dat file by its hash. See https://en.bitcoin.it/wiki/Bitcoin_Core_0.11_(ch_2):_Data_Storage or https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair for the data format. – Nate Eldredge Sep 24 '17 at 02:26