Skip to main content

importwallet

Overview

The 'importwallet' method allows you to Add a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"importwallet","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • filename: The wallet file

Response

{
// Response structure here
}