⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST lockunspent

dropdown

方法 RPC lockunspent 例如 Zcash (ZEC)

POST lockunspent

Method not allowed

更新暂时无法投放输出的列表。

暂时锁定(解锁= false)或解锁(解锁= true)指定的事务输出。

在花费ZCash时,将不会选择自动硬币的锁定交易输出。

锁仅存储在内存中。 节点以零锁定输出开头,当节点停止或失败时,锁定的输出列表总是清除(根据过程退出)。

另请参阅ListunSpent Call。

Parameters

unlock - 布尔

是解锁(true)还是锁定(false)指定的交易

transactions - 细绳

json对象阵列。 每个对象都有TXID(String)和Vout(数字)。

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


Response

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