getinfo - Zcash

Example code for the getinfo json-rpc method. Сomplete guide on how to use getinfo json-rpc in GetBlock.io Web3 documentation.

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": "getinfo",
"params": [],
"id": "getblock.io"}'

Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "balance": 0.0,
        "blocks": 1384346,
        "build": "v4.4.1",
        "connections": 8,
        "difficulty": 47115695.15933816,
        "errors": "",
        "errorstimestamp": 1631190613,
        "keypoololdest": 1625167933,
        "keypoolsize": 101,
        "paytxfee": 0.0,
        "protocolversion": 170013,
        "proxy": "",
        "relayfee": 1e-06,
        "subversion": "/MagicBean:4.4.1/",
        "testnet": false,
        "timeoffset": 0,
        "version": 4040150,
        "walletversion": 60000
    }
}

Last updated

© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.