transactions – Watch solely handle not replace steadiness

0
37


Utilizing importaddress you possibly can sync your steadiness for watch solely handle with rescan set to true:

importaddress "handle" ( "label" rescan p2sh )

Provides a script (in hex) or handle 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 handle)
2. "label"            (string, non-compulsory, default="") An non-compulsory label
3. rescan               (boolean, non-compulsory, default=true) Rescan the pockets for transactions
4. p2sh                 (boolean, non-compulsory, default=false) Add the P2SH model of the script as effectively

Observe: This name can take minutes to finish if rescan is true, throughout that point, different rpc calls
might report that the imported handle exists however associated transactions are nonetheless lacking, resulting in quickly incorrect/bogus balances and unspent outputs till rescan completes.
If in case you have the total public key, it is best to name importpubkey as a substitute of this.

Observe: If you happen to import a non-standard uncooked script in hex kind, outputs sending to it will likely 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