getblockchaininfo - Pastel RPC
getblockchaininfo Returns an object containing various state info regarding block chain processing. Note that when the chain tip is at the last block before a network upgrade activation, consensus.chaintip != consensus.nextblock. Result: { "chain": "xxxx", (string) current network name as defined in BIP70 (main, test, regtest) "blocks": xxxxxx, (numeric) the current number of blocks processed in the server "headers": xxxxxx, (numeric) the current number of headers we have validated "bestblockhash": "...", (string) the hash of the currently best block "difficulty": xxxxxx, (numeric) the current difficulty "verificationprogress": xxxx, (numeric) estimate of verification progress [0..1] "chainwork": "xxxx" (string) total amount of work in active chain, in hexadecimal "commitments": xxxxxx, (numeric) the current number of note commitments in the commitment tree "softforks": [ (array) status of softforks in progress { "id": "xxxx", (string) name of softfork "version": xx, (numeric) block version "enforce": { (object) progress toward enforcing the softfork rules for new-version blocks "status": xx, (boolean) true if threshold reached "found": xx, (numeric) number of blocks with the new version found "required": xx, (numeric) number of blocks required to trigger "window": xx, (numeric) maximum size of examined window of recent blocks }, "reject": { ... } (object) progress toward rejecting pre-softfork blocks (same fields as \"enforce\") }, ... ], "upgrades": { (object) status of network upgrades "xxxx" : { (string) branch ID of the upgrade "name": "xxxx", (string) name of upgrade "activationheight": xxxxxx, (numeric) block height of activation "status": "xxxx", (string) status of upgrade "info": "xxxx", (string) additional information about upgrade }, ... }, "consensus": { (object) branch IDs of the current and upcoming consensus rules "chaintip": "xxxxxxxx", (string) branch ID used to validate the current chain tip "nextblock": "xxxxxxxx" (string) branch ID that the next block will be validated under } } Examples: > pastel-cli getblockchaininfo > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/
Maintained by Pastel Network; license of the docs is MIT (see pastel repo)
Generated from a mainnet node
Addressindex
Blockchain
Control
Generating
Mining
Mnode
Network
Rawtransactions
Wallet
addmultisigaddress
backupwallet
dumpprivkey
dumpwallet
encryptwallet
fixmissingtxs
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
gettransaction
gettxfee
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddressamounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
scanburntransactions
scanformissingtxs
sendfrom
sendmany
sendtoaddress
setaccount
settxfee
signmessage
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getnewaddress(type)
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listoperationids
z_listreceivedbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_sendmanywithchangetosender
z_shieldcoinbase
z_viewtransaction
zcbenchmark