bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/importaddress
Wallet

importaddress

Adds an address or script to the wallet without the associated private key, to watch for transactions.

Parameters

addressstringREQUIRED
Address or script to import
labelstringoptional
Label. Default: ""
rescanbooleanoptional
Rescan blockchain. Default: true
p2shbooleanoptional
Add the P2SH version. Default: false

Returns

nullnull on success

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"importaddress","params":["address","watch",false]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

null
← Previous
getwalletinfo
Next →
listreceivedbyaddress

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗