getblock

Returns information about a block, based on the provided block hash.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
blockhashstringRequiredformat: "^[a-fA-F0-9]{64}$"
The hash of the block to retrieve.
verbosityenumOptional

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.
hashstring
The block hash.
confirmationsinteger

Number of confirmations or -1 if block not on main chain.

heightinteger
Block height or index.
versioninteger
Block version.
merklerootstring
Merkle root.
timeinteger
Block time in UNIX timestamp.
txlist of strings
List of transaction IDs included in the block.
sizeinteger or null
Block size in bytes.
strippedsizeinteger or null
Block size excluding witness data.
weightinteger or null
Block weight as defined in BIP 141.
versionHexstring or null
Block version in hex.
mediantimeinteger or null
Median block time.
nonceinteger or null
Nonce used for mining.
bitsstring or null
nBits field of block header.
targetstring or null

The target threshold for the block’s hash (derived from bits).

difficultydouble or null
Difficulty at the time of mining.
chainworkstring or null
Expected number of hashes to produce the chain.
nTxinteger or null
Number of transactions in the block.
previousblockhashstring or null
Hash of the previous block.
nextblockhashstring or null
Hash of the next block.