getblockchaininfo

Returns an object containing state details related to blockchain processing, network, and storage information.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Response

Blockchain status information.
chainstring

Current network name (main, test, regtest).

blocksinteger
The current number of blocks.
headersinteger
The current number of headers.
bestblockhashstring
The hash of the best block.
difficultydouble
The current difficulty.
timeinteger
Timestamp of the best block.
mediantimeinteger
Median time of the blockchain.
verificationprogressdouble

Estimate of verification progress (0.0–1.0).

initialblockdownloadboolean

Whether the node is in IBD (initial block download).

chainworkstring
Expected number of hashes required to produce the chain.
size_on_diskinteger
Estimated size of the blockchain stored on disk in bytes.
prunedboolean
If the blockchain is pruned.
bitsstring or null
The nBits field of the best block header.
targetstring or null
The target corresponding to current difficulty.
warningslist of strings or null
Any network or blockchain warnings.