How to make transaction in btc rpc
The simplest thing for you is to just use sendtoaddress. This will use your bitcoind's wallet to select which coins to use, construct the transaction, sign it, and send it. Everything happens internally to the wallet so all you need is to have some Bitcoin in your wallet, an address to send to, and the amount you want to send.

The syntax for sendtoaddress is

sendtoaddress &lt;address&gt; &lt;amount&gt;


where &lt;address&gt; is the address you are sending to and &lt;amount&gt; is the amount.