Broadcast Transaction
Sending a signed transaction to peers so it reaches miners. A transaction is not "sent" until the network carries it.
Basically
Broadcasting sends your signed Bitcoin transaction to the Bitcoin network. Miners can then include it in a block.
Key Takeaways
- Broadcasting is how a signed transaction enters the Bitcoin network. Your node sends an inventory announcement to connected peers, which validate and relay it until it reaches the entire network and lands in the mempool.
- You can broadcast through Bitcoin Core RPC, Electrum servers, block explorer APIs or Tor-based broadcasting. Each method offers different trade-offs and varying degrees of IP-address protection.
- Broadcasting patterns can deanonymise you. Adversarial nodes can use timing analysis to link transactions to originating IP addresses, which is why proposals such as the Dandelion protocol aim to improve broadcast privacy.
What Is a Broadcast Transaction?
Broadcasting a transaction submits your signed Bitcoin transaction to the peer-to-peer network. Nodes validate it, add it to their mempools and relay it to other nodes until a miner includes it in a block. A signed transaction that you do not broadcast is only valid data on your local device, invisible to the network.
A broadcast works like mailing a letter. Signing the transaction is like writing and sealing the envelope, while broadcasting is like dropping it into the mailbox. The network does not know that you intend to move funds until you broadcast.
The broadcast step looks simple, but it affects privacy, reliability and transaction confirmation speed. How, when and where you broadcast can determine whether your transaction confirms quickly or gets stuck in a congested mempool. It can also expose your IP address to surveillance nodes.
How It Works
The full lifecycle runs from signing to confirmation. The Bitcoin P2P protocol governs its well-defined sequence.
The Three-Step Announcement Protocol
Bitcoin uses an announcement-based relay protocol instead of blindly forwarding full transactions. Its three-step handshake, inv → getdata → tx, prevents the same transaction from being transmitted twice to the same peer. This conserves bandwidth across the network.
BIP-339 lets nodes negotiate wtxid-based relay during the version handshake. Announcements use the witness-inclusive transaction ID, which prevents redundant downloads caused by witness malleation.
Propagation Speed
A typical Bitcoin Core node maintains up to 125 total connections: 8 full-relay outbound, 2 block-relay-only outbound, 1 feeler connection and up to 114 inbound slots. Each relay hop adds a random delay drawn from an exponential distribution. This privacy measure obscures the transaction's origination point.
A broadcast transaction typically reaches roughly 50% of all nodes within about 5 seconds and 90% within about 15 seconds. Full propagation across the network usually completes in 13 to 20 seconds.
Bitcoin Core RPC
Bitcoin Core's RPC interface provides the most direct broadcast method. The sendrawtransaction command accepts a hex-encoded signed transaction, validates it against the local node's mempool policy and relays it to connected peers.
The testmempoolaccept RPC lets you dry-run a transaction against mempool policy without broadcasting it. You can use it to validate fee levels and script correctness before committing.
Electrum Servers
Electrum wallets broadcast through the blockchain.transaction.broadcast RPC method exposed by Electrum protocol servers: ElectrumX, Fulcrum or Electrs. The server validates the transaction and submits it to its connected Bitcoin Core backend.
Your own Electrum server, connected to your own full node, gives you full sovereignty over broadcasting. You avoid trusting a third-party server with your transaction data and IP address information.
Block Explorer APIs
Web-based services provide HTTP endpoints for broadcasting without running a node. Blockstream Esplora accepts a raw hex body via POST /tx and returns the txid on success. Mempool.space offers both a web interface at /tx/push and an equivalent API endpoint.
These services are convenient for occasional use, but they carry privacy trade-offs. The service operator sees your IP address and knows that you originated the transaction. For repeated use, combining these APIs with a VPN or Tor mitigates the risk.
Tor-Based Broadcasting
Tor prevents network observers from correlating a broadcast with your IP address. Bitcoin Core supports routing all P2P traffic through Tor via the -proxy option or operating as a Tor hidden service with an .onion address. Over 60% of reachable Bitcoin nodes now operate via Tor, according to Bitnodes data.
Electrum wallets also support Tor proxying natively. You can connect to .onion Electrum servers so that neither the server operator nor network observers learn your real IP address. Research on Bitcoin network privacy provides a deeper look at network-level privacy.
Privacy and Deanonymisation Risks
Broadcasting is the most vulnerable moment for transaction privacy. The Bitcoin blockchain is pseudonymous, but the broadcast step can link a transaction to a real-world IP address.
Timing Analysis
An adversary can deploy a "supernode" that connects to as many Bitcoin nodes as possible and records the timestamp of the first inv message received for each transaction. The first-spy estimator links each transaction to the first node observed broadcasting it. The originating node is statistically most likely to announce first.
Research by Biryukov et al. (2014) demonstrated that such supernodes could associate transactions with originator IP addresses with meaningful accuracy. A more sophisticated variant identifies each client by its set of outgoing connections, known as entry nodes. The attacker can then link a transaction to a specific client after receiving it from just 2 to 3 entry nodes.
Diffusion Spreading
Bitcoin Core's current mitigation is diffusion spreading. Each relay node transmits to each neighbour with an independent random delay drawn from an exponential distribution. This replaced an earlier "trickle" protocol that used a fixed 200ms delay, but sophisticated adversaries who know the network graph topology can still exploit the symmetric spreading pattern despite the added timing uncertainty.
The Dandelion Protocol (BIP-156)
The Dandelion protocol, proposed in BIP-156, introduces a two-phase broadcast mechanism. It is designed to break the link between transaction originators and their IP addresses.
Dandelion++ is an improved version that addresses edge cases around nodes that do not follow the protocol. It uses a 4-regular graph for the stem phase and per-hop randomisation. BIP-156 was not merged into Bitcoin Core, but other cryptocurrencies, including Grin and Zcash, have adopted Dandelion++. Research on Dandelion network privacy provides more context on Bitcoin network privacy techniques.
Common Broadcast Errors
Bitcoin Core returns specific rejection reasons when a broadcast fails. These reasons help you diagnose issues quickly.
The testmempoolaccept RPC is the safest way to check for these errors before broadcasting. If a transaction is rejected for insufficient fees, replace-by-fee (RBF) or child-pays-for-parent (CPFP) can help resolve the issue.
Standard Wallet Broadcasting
Standard wallet broadcasting is the most common use case: simply sending Bitcoin. Your wallet constructs and signs a transaction, then broadcasts it to the network through a connected node or API. Most wallet software handles this automatically behind a "Send" button.
Transaction Batching
Exchanges and payment processors use transaction batching to combine multiple payments into a single broadcast. This reduces the number of transactions competing for block space and lowers per-payment fees. Timing the broadcast to coincide with lower fee periods further reduces costs.
Fee Bumping
A transaction can get stuck in the mempool because its fee is too low. You can broadcast a replacement transaction with a higher fee using RBF, signalling to nodes that they should evict the original from their mempools. Alternatively, CPFP involves broadcasting a child transaction that spends an output of the stuck parent, incentivising miners to confirm both.
Layer 2 Settlement
Layer 2 protocols like the Lightning Network and Spark use on-chain broadcasts for channel opens, cooperative closes and force closes. The timing of these broadcasts matters because a justice transaction must be broadcast within the timelock window to prevent a counterparty from stealing funds. The Spark layer 2 overview explains how Spark handles on-chain settlement.
Erlay (BIP-330)
Erlay proposes replacing the current flood-based transaction relay with set reconciliation using Minisketch. Only well-connected public nodes would flood transactions, instead of every node sending inv messages to every peer. All other relay would use efficient set reconciliation, where nodes periodically compare their mempool contents and exchange only the differences.
The approach is expected to reduce transaction relay bandwidth by approximately 40% with negligible impact on propagation latency. These bandwidth savings would allow nodes to maintain more connections without increased resource usage. The network's censorship resistance and connectivity would strengthen as a result.
Risks and Considerations
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.