post https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8/
The getblock
method retrieves a block from the blockchain by its hash or height. If the verbosity parameter is omitted, the method returns a serialized block in hex format. If the verbosity parameter is set to 1, the method returns an Object with information about the block. If the verbosity parameter is set to 2, the method returns an Object with information about the block and information about each transaction.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
blockhash
(required) — a string representing the hash of the block to retrieve.verbosity
(optional, default=1) — an integer specifying the level of detail to include in the response:0
— returns a serialized block in hex format.1
— returns an Object with information about the block.2
— returns an Object with information about the block and information about each transaction.
Response
result
— the requested block data, either as a serialized block in hex format, or as a JSON object with the following fields:hash
— the block hash.confirmations
— the number of confirmations.size
— the block size in bytes.strippedsize
— the block size excluding witness data.weight
— the block weight.height
— the block height or index.version
— the block version.versionHex
— the block version formatted in hexadecimal.merkleroot
— the merkle root.tx
— the transaction ids (verbosity=1) or full transaction details (verbosity=2).time
— the block time in seconds since epoch (Jan 1 1970 GMT).mediantime
— the median block time in seconds since epoch (Jan 1 1970 GMT).nonce
— the nonce.bits
— the bits.difficulty
— the difficulty.chainwork
— the expected number of hashes required to produce the current chain