getblockchaininfo - Hush 3.10.3 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 "longestchain": xxxxxx, (numeric) the longest high of the chain "notarized": xxxxxx, (numeric) last notarized Block "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: > hush-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:18031/
Maintained by The Hush Developers
Welcome to the Hush full node RPC developer documentation!!! You finally made it.
Addressindex
Blockchain
coinsupply
getbestblockhash
getblock
getblockchaininfo
getblockcount
getblockhash
getblockhashes
getblockheader
getblockmerkletree
getchaintips
getchaintxstats
getdifficulty
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
kvsearch
kvupdate
minerids
notaries
verifychain
verifytxoutproof
getbestblockhash
getblock
getblockchaininfo
getblockcount
getblockhash
getblockhashes
getblockheader
getblockmerkletree
getchaintips
getchaintxstats
getdifficulty
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
kvsearch
kvupdate
minerids
notaries
verifychain
verifytxoutproof
Crosschain
Generating
Mining
NSPV
Network
Rawtransactions
Util
Wallet
abortrescan
addmultisigaddress
backupwallet
cleanwallettransactions
convertpassphrase
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getalldata
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getrescaninfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddresses
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
opreturn_burn
rescan
resendwallettransactions
sendfrom
sendmany
sendtoaddress
setaccount
setpubkey
settxfee
signmessage
z_anonsetblockdelta
z_anonsettxdelta
z_consolidationstatus
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getbalances
z_getinfo
z_getnewaddress
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_getstats
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listnullifiers
z_listoperationids
z_listreceivedaddress
z_listreceivedbyaddress
z_listsentbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_shieldcoinbase
z_sweepstatus
z_viewtransaction
addmultisigaddress
backupwallet
cleanwallettransactions
convertpassphrase
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getalldata
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getrescaninfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddresses
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
opreturn_burn
rescan
resendwallettransactions
sendfrom
sendmany
sendtoaddress
setaccount
setpubkey
settxfee
signmessage
z_anonsetblockdelta
z_anonsettxdelta
z_consolidationstatus
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getbalances
z_getinfo
z_getnewaddress
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_getstats
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listnullifiers
z_listoperationids
z_listreceivedaddress
z_listreceivedbyaddress
z_listsentbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_shieldcoinbase
z_sweepstatus
z_viewtransaction