getblockchaininfo
Returns an object containing state details related to blockchain processing, network, and storage information.
Path parameters
apiKey
Response
Blockchain status information.
chain
Current network name (main, test, regtest).
blocks
The current number of blocks.
headers
The current number of headers.
bestblockhash
The hash of the best block.
difficulty
The current difficulty.
time
Timestamp of the best block.
mediantime
Median time of the blockchain.
verificationprogress
Estimate of verification progress (0.0–1.0).
initialblockdownload
Whether the node is in IBD (initial block download).
chainwork
Expected number of hashes required to produce the chain.
size_on_disk
Estimated size of the blockchain stored on disk in bytes.
pruned
If the blockchain is pruned.
bits
The nBits field of the best block header.
target
The target corresponding to current difficulty.
warnings
Any network or blockchain warnings.