⚡ We welcome businesses to test our enterprise-grade service

zec
Zcash (ZEC)

Method: POST importprivkey

dropdown

方法 RPC importprivkey 例如 Zcash (ZEC)

POST importprivkey

Method not allowed

在您的钱包中添加一个私钥(Dumpprivkey返回)。

注意:如果恢复为真,此通话可能需要几分钟才能完成。

Parameters

zcashprivkey - 细绳

私钥。

label - 细绳

可选,默认=“”

可选标签。

rescan - 布尔

可选,默认= 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": "importprivkey",
"params": [null, null, null],
"id": "getblock.io"}'


Response

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