transactions – Watch solely deal with not replace stability

0
15


Utilizing importaddress you may sync your stability for watch solely deal with with rescan set to true:

importaddress "deal with" ( "label" rescan p2sh )

Provides a script (in hex) or deal with that may be watched as if it have been in your pockets however can't be used to spend. Requires a brand new pockets backup.

Arguments:
1. "script"           (string, required) The hex-encoded script (or deal with)
2. "label"            (string, optionally available, default="") An optionally available label
3. rescan               (boolean, optionally available, default=true) Rescan the pockets for transactions
4. p2sh                 (boolean, optionally available, default=false) Add the P2SH model of the script as effectively

Notice: This name can take minutes to finish if rescan is true, throughout that point, different rpc calls
could report that the imported deal with exists however associated transactions are nonetheless lacking, resulting in quickly incorrect/bogus balances and unspent outputs till rescan completes.
When you've got the total public key, you need to name importpubkey as a substitute of this.

Notice: Should you import a non-standard uncooked script in hex kind, outputs sending to will probably be handled
as change, and never present up in lots of RPCs.

Examples:

Import a script with rescan
> bitcoin-cli importaddress "myscript"

Import utilizing a label with out rescan
> bitcoin-cli importaddress "myscript" "testing" false

As a JSON-RPC name
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "methodology": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: textual content/plain;' http://127.0.0.1:8332/



Supply hyperlink

Leave a reply