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
On reading the document of Bitcoin 0.18.0, it is suggested to use sendtoaddress
method.
sendtoaddress
method has two required parameter
- "address" - address to which we want to sent BTC
- "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.