getblock
Returns information about a block, based on the provided block hash.
⚠ This endpoint is only available with Blast access.
Path parameters
apiKey
Request
This endpoint expects an object.
blockhash
The hash of the block to retrieve.
verbosity
Level of detail to return. - 0: hex-encoded string, - 1: basic block info, - 2: with transactions, - 3: with transactions + input prevouts.
Allowed values:
Response
The block object or hex string, depending on verbosity.
hash
The block hash.
confirmations
Number of confirmations or -1 if block not on main chain.
height
Block height or index.
version
Block version.
merkleroot
Merkle root.
time
Block time in UNIX timestamp.
tx
List of transaction IDs included in the block.
size
Block size in bytes.
strippedsize
Block size excluding witness data.
weight
Block weight as defined in BIP 141.
versionHex
Block version in hex.
mediantime
Median block time.
nonce
Nonce used for mining.
bits
nBits field of block header.
target
The target threshold for the block’s hash (derived from bits
).
difficulty
Difficulty at the time of mining.
chainwork
Expected number of hashes to produce the chain.
nTx
Number of transactions in the block.
previousblockhash
Hash of the previous block.
nextblockhash
Hash of the next block.