I am trying to import a 2-of-3 multisignature address into my bitcoind wallet, watch-only. I have the public keys, but not the private keys. Two potential bitcoind JSON-RPC calls that seem to fit are:
bitcoin-cli addmultisigaddress 2 ["pubkey1", "pubkey2", "pubkey3"] "my_account"
and
bitcoin-cli importaddress "multisig-ed_address" "my_account"
Assume "multisig-ed_address" == multisig("pubkey1", "pubkey2", "pubkey3")
Are these equivalent? Would they both work?
The only difference I can find is that importaddress
has an option to rescan the blockchain for transactions that might have involved the imported address. Does addmultisigaddress
rescan or not?