⚡ We welcome businesses to test our enterprise-grade service

grs
Groestlcoin (GRS)

Method: POST importmulti

dropdown

方法 RPC importmulti 例如 Groestlcoin (GRS)

POST importmulti

Method not allowed

导入地址/脚本(带有私钥或公共密钥,兑换脚本(P2SH)),可选地从导入脚本的最早创建时间重新撤下区块链。 需要一个新的钱包备份。

如果无需从该地址花费的所有私钥即可导入地址/脚本,则将是守望的。 在这种情况下,必须将“观察”选项设置为true,否则将返回警告。

相反,如果提供了所有私钥并且可以花费地址/脚本,则必须将WatchOnly选项设置为false,否则将返回警告。

请注意,如果Rescan为True,则此通话可能需要一个多小时才能完成,在此期间,其他RPC呼叫可能会报告进口密钥,地址或脚本存在,但仍然缺少相关的交易。

注意使用“ getwalletinfo”查询扫描进度。

Parameters

requests - json阵列,必需

要导入的数据

Request

curl --location --request POST 'https://grs.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "importmulti",
"params": [null],
"id": "getblock.io"}'


Response

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