ZEC
POST
GET
Last updated on January 1, 1970
9 min read
Method getblockchaininfo undefined ()
connect with JSON-RPC protocol
getblockchaininfo
Returns an object containing various state info regarding block chainprocessing.Note that when the chain tip is at the last block before a networkupgrade activation, consensus.chaintip != consensus.nextblock.
Parameters
-
Request
curl --location --request POST 'https://zec.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "getblockchaininfo",
"params": [],
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": {
"bestblockhash": "00000000019af1612080b8d6b3ce87c5b7569a114e6a77385260cf45a6419fe1",
"blocks": 1384358,
"chain": "main",
"chainwork": "00000000000000000000000000000000000000000000000006cad1298bfcc257",
"commitments": 1544318,
"consensus": {
"chaintip": "e9ff75a6",
"nextblock": "e9ff75a6"
},
"difficulty": 48487005.99738715,
"estimatedheight": 1384358,
"headers": 1384358,
"initial_block_download_complete": true,
"pruned": false,
"size_on_disk": 31423699844,
"softforks": [
{
"enforce": {
"found": 4000,
"required": 750,
"status": true,
"window": 4000
},
"id": "bip34",
"reject": {
"found": 4000,
"required": 950,
"status": true,
"window": 4000
},
"version": 2
},
{
"enforce": {
"found": 4000,
"required": 750,
"status": true,
"window": 4000
},
"id": "bip66",
"reject": {
"found": 4000,
"required": 950,
"status": true,
"window": 4000
},
"version": 3
}
],
"upgrades": {
"2bb40e60": {
"activationheight": 653600,
"info": "See https://z.cash/upgrade/blossom/ for details.",
"name": "Blossom",
"status": "active"
},
"5ba81b19": {
"activationheight": 347500,
"info": "See https://z.cash/upgrade/overwinter/ for details.",
"name": "Overwinter",
"status": "active"
},
"76b809bb": {
"activationheight": 419200,
"info": "See https://z.cash/upgrade/sapling/ for details.",
"name": "Sapling",
"status": "active"
}
},
"valuePools": [
{
"chainValue": 29342.43164115,
"chainValueZat": 2934243164115,
"id": "sprout",
"monitored": true
},
{
"chainValue": 844070.82117579,
"chainValueZat": 84407082117579,
"id": "sapling",
"monitored": true
}
],
"verificationprogress": 0.9999989219382445
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }