getinfo

Returns an object containing various state info.

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
{
"result": {
"version": 4000050,
"protocolversion": 170013,
"walletversion": 60000,
"balance": 0,
"blocks": 259342,
"timeoffset": 0,
"connections": 8,
"proxy": "",
"difficulty": 6368310.649373817,
"testnet": false,
"keypoololdest": 1602496715,
"keypoolsize": 101,
"paytxfee": 0,
"relayfee": 0.000001,
"errors": ""
},
"error": null,
"id": "curltest"
}