getblockchaininfo

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

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.

bitsstringOptional

The nBits field of the best block header.

targetstringOptional

The target corresponding to current difficulty.

warningslist of stringsOptional

Any network or blockchain warnings.