getblock
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.
Argument #1 – blockhash
Type: string, required
The block hash
Argument #2 – verbosity
Type: numeric, optional, default=1
0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data
Result (for verbosity = 0)
Name |
Type |
Description |
---|---|---|
hex |
string |
A string that is serialized, hex-encoded data for block ‘hash’ |