post https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8/
The getblockchaininfo
method returns an object containing various state info regarding blockchain processing.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
Response
result
— an object containing various state info with the following fields:chain
— current network name (main, test, regtest)blocks
— the height of the most-work fully-validated chain. The genesis block has height 0headers
— the current number of headers we have validatedbestblockhash
— the hash of the currently best blockdifficulty
— the current difficultymediantime
— median time for the current best blockverificationprogress
— estimate of verification progress [0..1]initialblockdownload
— (debug information) estimate of whether this node is in Initial Block Download modechainwork
— total amount of work in active chain, in hexadecimalsize_on_disk
— the estimated size of the block and undo files on diskpruned
— if the blocks are subject to pruningpruneheight
— lowest-height complete block stored (only present if pruning is enabled)automatic_pruning
— whether automatic pruning is enabled (only present if pruning is enabled)prune_target_size
— the target size used by pruning (only present if automatic pruning is enabled)softforks
— status of softforksbip9_softforks
— status of BIP9 softforks in progresswarnings
— any network and blockchain warnings
error
— an object containing an error message if an error occurred, otherwisenull
id
— an integer representing the ID of the request, used to match requests with responses
Use case
The getblockchaininfo
method is useful for retrieving various state information about the blockchain. This information can be used for monitoring the health and progress of the blockchain, as well as for making decisions in blockchain-based applications. For example, a mining pool might use the difficulty
field to adjust the pool's target share difficulty.
Try the getblockchaininfo
RPC method yourself
getblockchaininfo
RPC method yourself