Raw Transaction on Bitcoin-core lets you create and broadcast transaction through its Application Programming Interface and Command Line Interface (or on a shell for nix users). In this short post… we will be using few bitcoin-core commands such as, listunpent, createrawtransaction, signrawtransaction and signrawtransaction. But before we start, make sure your blockchain is fully synced and you have enough bitcoin to play with.
In this example, we will send all spendable amount of bitcoins to wallet address 1ZXsXWvnGHey8Dv7dCYtfBAaeipP2QEBY with 0.00001 of bitcoin reward to miners for processing our transaction.
Step 1: Pick which set of Bitcoins you want to send. Use listunpsent command to get the transaction ID and vout index number.