zec

Zcash (ZEC)

Method: POST z_gettotalbalance

dropdown

POST z_gettotalbalance

Method not allowed

Return the total value of funds stored in the node's wallet.

CAUTION: If the wallet contains any addresses for which it only has incoming viewing keys, the returned private balance may be larger than the actual balance, because spends cannot be detected with incoming viewing keys.

Parameters

minconf - numeric

Optional, default=1

Only include private and transparent transactions confirmed at least this many times.

includeWatchonly - boolean

Optional, default=false

Also include balance in watchonly addresses.

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}