getinfo

Returns blockchain information.

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getinfo","params": []}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"result": {
"version": 1050100,
"protocolversion": 7,
"blocks": 453212,
"timeoffset": 0,
"connections": 8,
"proxy": "",
"difficulty": 27491922767.937256,
"testnet": false,
"relayfee": 0.0001,
"errors": ""
},
"error": null,
"id": 1
}