⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST z_listunspent

dropdown

方法 RPC z_listunspent 例如 Zcash (ZEC)

POST z_listunspent

Method not allowed

返回未固定屏蔽音符的数组,并在MINCONF和MAXCONF(包含)确认之间返回。

可选的过滤到仅包括发送到指定地址的注释。

当MinConf为0时,即使无法立即花费,也会返回带有零确认的未解决的笔记。

Parameters

minconf - 数字

可选,默认= 1

过滤的最低确认。

maxconf - 数字

可选,默认= 9999999

过滤的最大确认。

includeWatchonly - 布尔

可选,默认= false

还包括在守望地址中包含平衡(请参阅“ ImportAddress”)

addresses - 细绳

一个ZADDRS(芽和树苗)的JSON阵列要过滤。 重复的地址不允许。

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


Response

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