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

0
41


NOTE: Account options are deprecated and can be eliminated in Bitcoin Core v0.18.0, it is strongly recommended 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 may 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 title of the account to maneuver funds from. Will be the default account utilizing "".
2. "toaccount"     (string, required) The title of the account to maneuver funds to. Will be the default account utilizing "".
3. quantity            (numeric) Amount of BTC to maneuver between accounts.
4. (dummy)           (numeric, non-compulsory) Ignored. Stays for backward compatibility.
5. "remark"       (string, non-compulsory) An non-compulsory remark, saved within the pockets solely.

Consequence: 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 "joyful 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