📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

zec
Zcash (ZEC)

Method: POST z_importviewingkey

dropdown

方法 RPC z_importviewingkey 例如 Zcash (ZEC)

POST z_importviewingkey

Method not allowed

将查看键(如z_exportviewingkey返回)到您的钱包中。

Parameters

zkey - 细绳

zkey(请参阅z_exportkey)。

rescan - 布尔

可选,默认=“ whitkeyisnew”

恢复交易的钱包 - 可以是“是”,“否”或“ keyisnew”

startHeight - 数字

可选,默认= 0

从块高度开始恢复。

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


Response

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