getblockchaininfo

Returns an object containing various state info regarding blockchain processing.

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblockchaininfo","params": []}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"result": {
"chain": "mainnet",
"blocks": 449448,
"headers": 449448,
"syncheight": 468648,
"bestblockhash": "00000000000000000a4ea2bf354ff23595832860af07194244d6a2241d873d35",
"difficulty": 405014717,
"difficultyratio": 30512592678.69649,
"verificationprogress": 0.9590310851641317,
"chainwork": "000000000000000000000000000000000000000000100414a690fa4024683c74",
"initialblockdownload": true,
"maxblocksize": 393216,
"deployments": {
"fixlnseqlocks": {
"status": "active",
"since": 342784,
"starttime": 1548633600,
"expiretime": 1580169600
},
"headercommitments": {
"status": "active",
"since": 431488,
"starttime": 1567641600,
"expiretime": 1599264000
},
"lnfeatures": {
"status": "active",
"since": 189568,
"starttime": 1505260800,
"expiretime": 1536796800
},
"lnsupport": {
"status": "active",
"since": 149248,
"starttime": 1493164800,
"expiretime": 1508976000
},
"sdiffalgorithm": {
"status": "active",
"since": 149248,
"starttime": 1493164800,
"expiretime": 1524700800
}
}
},
"error": null,
"id": 1
}