bitcoin core – RPC Command to ship from a number of accounts to 1 account (default – “”) in identical pockets

0
25


NOTE: Account options are deprecated and will probably be eliminated in Bitcoin Core v0.18.0, it’s endorsed to modify to the label API in v0.17.0 and later, see Launch notes 14023.

Relying on what you are attempting to do, you possibly can both transfer them utilizing the transfer RPC:

transfer "fromaccount" "toaccount" quantity ( minconf "remark" )

DEPRECATED. Transfer a specified quantity from one account in your pockets to a different.

Arguments:
1. "fromaccount"   (string, required) The identify of the account to maneuver funds from. Stands out as the default account utilizing "".
2. "toaccount"     (string, required) The identify of the account to maneuver funds to. Stands out as the default account utilizing "".
3. quantity            (numeric) Amount of BTC to maneuver between accounts.
4. (dummy)           (numeric, optionally available) Ignored. Stays for backward compatibility.
5. "remark"       (string, optionally available) An optionally available remark, saved within the pockets solely.

End result: true|false           (boolean) true if profitable.

Examples:

Transfer 0.01 BTC from the default account to the account named tabby
> bitcoin-cli transfer "" "tabby" 0.01

Transfer 0.01 BTC timotei to akiko with a remark and funds have 6 confirmations
> bitcoin-cli transfer "timotei" "akiko" 0.01 6 "completely happy birthday!"

As a json rpc name
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "methodology": "transfer", "params": ["timotei", "akiko",
0.01, 6, "happy birthday!"] }' -H 'content-type: textual content/plain;' http://127.0.0.1:8332/

Or you may get the deal with of the default account utilizing the getaccountaddress RPC:

$ bitcoin-cli getaccountaddress ""

after which ship it to that deal with utilizing the sendfrom RPC:

$ bitcoin-cli sendfrom <account-name> <to-address> <quantity>



Supply hyperlink

Leave a reply