<blockquote>
  <p>Please let me know how can I define the account or address from which I need to send Bitcoins or is there any other method available.</p>
</blockquote>

<p>The <code>listunspent</code> and <code>createrawtransaction</code> commands together can be used to achieve what you are asking.</p>

<p>The <code>listunspent</code> command will give you all the UTXOs that your wallet controls. You can pass an address parameter to filter all the unspent outputs by address. The documentation of <code>listunspent</code> is available <a href="https://bitcoincore.org/en/doc/0.16.0/rpc/wallet/listunspent/" rel="nofollow noreferrer">here</a>. This command will return you the <code>txid</code>s, output index, value and others.</p>

<p>Then use the <code>createrawtransaction</code> command and specify those <code>txid</code>s and output indexes in the input, and the address and value that you want to send in the output. </p>

CC BY-SA 4.0
2019-07-24T09:14:51.407Z
Thank you for your response... i checked the process of transaction and we need to sign and then send the raw transaction. Is there no straight forward method like sendfrom?
Puneet Kushwah
CC BY-SA 4.0
2019-07-23T12:18:29.803Z
2019-07-23T12:18:29.803Z
Ugam Kamat
<p>To transfer bitcoin from one account to another address, we have used <code>sendfrom</code> method and which got deprecated in the latest version Bitcoin 0.18.0</p>

<p><a href="https://bitcoincore.org/en/doc/0.16.0/rpc/wallet/sendfrom/" rel="nofollow noreferrer">Bitcoin <code>sendfrom</code> method</a></p>

<p>On reading the document of Bitcoin 0.18.0, it is suggested to use <code>sendtoaddress</code> method.</p>

<p><code>sendtoaddress</code> method has two required parameter</p>

<ol>
<li>"address" - address to which we want to sent BTC</li>
<li>"amount" - amount in whole number</li>
</ol>

<p>Unlike <code>sendfrom</code> method, there is no parameter where we can pass the parameter with account or address from which we want to send BTC.</p>

<p>Please let me know how can I define the account or address from which I need to send Bitcoins or is there any other method available. </p>

<p>I am using bitcoind to make RPC calls.</p>

<bitcoin-core><bitcoind><wallet><client><bitcoin-cli>
Bitcoin 0.18: how to send bitcoin from one address to another using Bitcoind?
Puneet Kushwah
# Bitcoin 0.18: how to send bitcoin from one address to another using Bitcoind?

(Asked by: username_0 on 2019-07-23)

To transfer bitcoin from one account to another address, we have used `sendfrom` method and which got deprecated in the latest version Bitcoin 0.18.0

[Bitcoin `sendfrom` method](https://bitcoincore.org/en/doc/0.16.0/rpc/wallet/sendfrom/)

On reading the document of Bitcoin 0.18.0, it is suggested to use `sendtoaddress` method.

`sendtoaddress` method has two required parameter

1. "address" - address to which we want to sent BTC
2. "amount" - amount in whole number

Unlike `sendfrom` method, there is no parameter where we can pass the parameter with account or address from which we want to send BTC.

Please let me know how can I define the account or address from which I need to send Bitcoins or is there any other method available.

I am using bitcoind to make RPC calls.

**Tags:** bitcoin-core, bitcoind, wallet, client, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2019-07-23. Score: 1

> Please let me know how can I define the account or address from which I need to send Bitcoins or is there any other method available.

The `listunspent` and `createrawtransaction` commands together can be used to achieve what you are asking.

The `listunspent` command will give you all the UTXOs that your wallet controls. You can pass an address parameter to filter all the unspent outputs by address. The documentation of `listunspent` is available [here](https://bitcoincore.org/en/doc/0.16.0/rpc/wallet/listunspent/). This command will return you the `txid`s, output index, value and others.

Then use the `createrawtransaction` command and specify those `txid`s and output indexes in the input, and the address and value that you want to send in the output.

> **Comments:**
> **username_0**: Thank you for your response... i checked the process of transaction and we need to sign and then send the raw transaction. Is there no straight forward method like sendfrom?  

---

