<p>Using Bitcoin Core (bitcoin-cli), the standard sequence of commands to create and broadcast a transaction would be:</p>
<pre><code>createrawtransaction
signrawtransactionwithkey
sendrawtransaction
</code></pre>
<p>You can find information on the commands by executing <code>bitcoin-cli help</code></p>
<p>You might also want to see this question:
<a href="https://stackoverflow.com/q/38493893">https://stackoverflow.com/q/38493893</a></p>

CC BY-SA 4.0
2021-06-23T14:02:41.120Z
Do you know how can I use bitcoin-cli locally and not as a full node? if it is possible.
Ruholla Kh
CC BY-SA 4.0
2021-06-23T14:17:18.837Z
bitcoin-cli simply alllows you to interact with a running instance of bitcoind via RPC. 
if you want to perform tests on a local network you need to use Regtest (add -regtest to both bitcoind and bitcoin-cli)
FedFranz
CC BY-SA 4.0
2021-06-23T14:45:57.277Z
If you don’t want to run a node you can use a third party service that will broadcast your transaction for you, for example https://www.blockchain.com/btc/pushtx
Mike D
CC BY-SA 4.0
2021-06-26T04:36:30.227Z
Thanks both. My question actually is can I use bitcoin-cli or bitcoind as a SPV to send transactions on the network or I have to installed whole of around 500 G for running it?
Ruholla Kh
CC BY-SA 4.0
2021-07-26T11:21:02.340Z
There's no SPV mode in Core, but you can use pruning to limit the amount of memory used to store the blockchain. Note that however you will still need to download each block at first. See this question: https://bitcoin.stackexchange.com/q/48882/35577
FedFranz
CC BY-SA 4.0
2021-06-23T13:24:54.953Z
2021-06-23T13:24:54.953Z
FedFranz
<p>I have made a raw transaction (based on Bitcoin rules) for my own for sending on Bitcoin network. I would like to submit it on the Bitcoin network. How can I do it ? (preferably command line based).</p>

<raw-transaction><broadcast><sendrawtransaction>
Broadcasting a raw transactions on bitcoin network
Ruholla Kh
# Broadcasting a raw transactions on bitcoin network

(Asked by: username_0 on 2021-06-23)

I have made a raw transaction (based on Bitcoin rules) for my own for sending on Bitcoin network. I would like to submit it on the Bitcoin network. How can I do it ? (preferably command line based).

**Tags:** raw-transaction, broadcast, sendrawtransaction


---

## 1 answers

### Answer by username_1 on 2021-06-23. Score: 2

Using Bitcoin Core (bitcoin-cli), the standard sequence of commands to create and broadcast a transaction would be:
createrawtransaction
signrawtransactionwithkey
sendrawtransaction

You can find information on the commands by executing bitcoin-cli help
You might also want to see this question:
https://stackoverflow.com/q/38493893

> **Comments:**
> **username_0**: Do you know how can I use bitcoin-cli locally and not as a full node? if it is possible.  
> **username_1**: bitcoin-cli simply alllows you to interact with a running instance of bitcoind via RPC.  if you want to perform tests on a local network you need to use Regtest (add -regtest to both bitcoind and bitcoin-cli)  
> **username_2**: If you don’t want to run a node you can use a third party service that will broadcast your transaction for you, for example https://www.blockchain.com/btc/pushtx  
> **username_0**: Thanks both. My question actually is can I use bitcoin-cli or bitcoind as a SPV to send transactions on the network or I have to installed whole of around 500 G for running it?  
> **username_1**: There's no SPV mode in Core, but you can use pruning to limit the amount of memory used to store the blockchain. Note that however you will still need to download each block at first. See this question: https://bitcoin.stackexchange.com/q/48882/35577  

---

