Broadcasting Transactions to the Network
When you hit "send" in your wallet, your signed transaction is broadcast to Bitcoin nodes nearby, which forward it to their peers, which forward it to theirs — rippling across the globe in seconds.
What is Broadcasting?
- •Definition: Sending your signed transaction to Bitcoin nodes on the network.
- •Peer-to-peer: No central server—transactions spread node-to-node.
- •Validation: Each node checks the transaction is valid before relaying.
- •Speed: Propagates to most of the network within seconds.
- •Irreversible: Once broadcast, you can't un-send (but can try to replace with RBF).
Key Definitions:
- •Broadcasting: Sending a transaction to the network.
- •Peer-to-peer (P2P): Network structure where nodes connect directly without central server.
- •Node: A computer running Bitcoin software that validates and relays transactions.
- •Relay: Passing a transaction to connected peers.
- •Propagation: The process of a transaction spreading across the network.
- •Mempool: Memory pool where unconfirmed transactions wait for confirmation.
How Broadcasting Works:
1. Create transaction: Your wallet constructs the transaction with inputs, outputs, signatures. 2. Connect to node: Your wallet connects to one or more Bitcoin nodes. 3. Send transaction: Your wallet sends the raw transaction data to connected nodes. 4. Node validates: Each node checks signatures, inputs, outputs, fees. 5. Node relays: If valid, node forwards the transaction to its peers (other nodes). 6. Propagation: Transaction spreads exponentially across the network. 7. Reaches miners: Mining nodes add the transaction to their mempool. 8. Included in block: A miner includes your transaction in the next block they mine.
Transaction Propagation:
Timeline:
- •0 seconds: You broadcast to 1-8 connected nodes
- •1-2 seconds: Those nodes relay to their peers (~hundreds of nodes)
- •5-10 seconds: Reaches most of the network (~10,000+ nodes)
- •Within 30 seconds: Nearly universal propagation
Exponential spread:
- •Round 1: 8 nodes
- •Round 2: 64 nodes
- •Round 3: 512 nodes
- •Round 4: 4,096 nodes
- •Round 5: 32,768 nodes
Ways to Broadcast:
1. Via Your Wallet
2. Via Your Own Node
3. Via Public APIs/Block Explorers
- •Websites like blockchain.com, mempool.space offer broadcasting
- •Copy raw transaction hex, paste into website
- •Less private (service knows your IP and transaction)
- •Useful as backup if wallet connection fails
4. Via Tor
- •Route through Tor network for IP privacy
- •Hides your location from nodes
- •Wasabi, Samourai wallets support this
- •Slower but more private
Validation Before Relay:
Nodes check transactions before relaying:
Basic checks:
- •Valid format and syntax
- •Signatures are correct
- •Inputs reference unspent outputs
- •Inputs ≥ outputs (no negative fees)
- •Output values ≥ dust limit
- •Transaction size within limits
If invalid:
Privacy Considerations:
What nodes learn:
- •Your transaction details (inputs, outputs, amounts)
- •Your IP address (if not using Tor/VPN)
- •Timing of broadcast
What Can Go Wrong:
Transaction doesn't propagate:
Once broadcast, a transaction cannot be unsent. It enters the mempool and waits for a miner to include it in a block. This is why verifying the recipient address before sending is critical.
Test Your Knowledge
4 questions · Passing score: 75%
Enjoying these lessons?
Get a free Bitcoin lesson in your inbox every week. Join thousands of learners.
Free forever. No spam. Unsubscribe anytime.