gold icon indicating copy to clipboard operation
gold copied to clipboard

add verbosity param for getblock

Open tyler-nguyen opened this issue 5 years ago • 0 comments

getblock has a second param verbosity.

https://developer.bitcoin.org/reference/rpc/getblock.html

getblock "blockhash" ( verbosity )

If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’.

If verbosity is 1, returns an Object with information about block ‘hash’.

If verbosity is 2, returns an Object with information about block ‘hash’ and information about each transaction.

tyler-nguyen avatar Feb 08 '21 10:02 tyler-nguyen