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

bsv
Bitcoin-SV (BSV)

Method: POST importwallet

dropdown

方法 RPC importwallet 例如 Bitcoin-SV (BSV)

POST importwallet

方法不允许

从钱包转储文件中导入密钥(参见 dumpwallet)。需要一个新的钱包备份来包含导入的密钥。

说明 使用“getwalletinfo”查询扫描进度。

Parameters

filename - 字符串,必填

钱包文件

Request

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


Response

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