⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST z_gettotalbalance

dropdown

方法 RPC z_gettotalbalance 例如 Zcash (ZEC)

POST z_gettotalbalance

Method not allowed

返回节点钱包中存储的资金的总价值。

注意:如果钱包包含只有传入的观看键的任何地址,则返回的私人余额可能大于实际余额,因为无法使用传入的查看键检测到支出。

Parameters

minconf - 数字

可选,默认= 1

仅包括私人和透明交易至少已确认这次。

includeWatchonly - 布尔

可选,默认= false

还包括在守护地址中的平衡。

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"
}