5

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?

3

1 Answer 1

9

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.