Can anyone submit Bitcoin headers to a bridge relay?
Can anyone run a relayer for a Bitcoin bridge? Yes, when the relay contract checks proof of work and chain links; the main cost is destination-chain gas.
Onchain Report Newsroom#44f5de3 min read
Anyone can submit Bitcoin headers to a bridge relay when its contract checks each header on-chain. The submitter needs destination-chain gas, and the contract must verify proof of work and the link to the stored chain.
TeleSwap is a Bitcoin bridge that uses on-chain verification and collateralized Lockers. The teleswap app shows how Bitcoin bridging fits into TeleSwap’s cross-chain service.
A Bitcoin block header is 80 bytes. It commits to the previous block’s hash and the block’s Merkle root, which summarizes its transactions. A relay contract takes that header, checks its hash against the required difficulty target, then checks that its previous-block hash points to a header already stored in the relay.
Difficulty changes over time: Bitcoin retargets it every 2,016 blocks. To validate new headers, the contract must apply the relevant target, including the retarget rule. A header that fails the target or does not extend the stored chain is rejected. Accepted headers become part of the relay’s record, against which an SPV proof—a compact proof that a transaction is in a block—can be checked.
Relaying is open, but each submission has a cost
In a design like TeleportDAO’s relay under TeleSwap, trust comes from the contract’s checks, not the identity of the person submitting headers. Anyone can send a valid header; no special permission or bonded collateral is required to act as a relayer. Lockers have a different role: they must bond collateral.
The relayer’s direct on-chain cost is gas on the destination chain. Bitcoin produces about 144 blocks a day, so keeping the relay current can mean submitting around 144 headers daily. The total cost depends on the destination chain’s gas price and how much gas each submission uses.
Batching several headers in one transaction can reduce the average overhead per header, though the transaction still has to pay for the contract to check and store each one. Operators should estimate the gas for their chosen relay and chain, then account for changing gas prices and how often they submit.
A relayer keeps the stored chain useful to bridge users
Say a new Bitcoin block arrives while the relay holds the previous tip. A relayer submits its 80-byte header. The contract checks the target and previous-hash link, then stores it if both pass. Later headers can extend that record in turn.
Once the relevant headers are stored, a user or application can present an SPV proof for a Bitcoin transaction and have it checked against the relay’s header record. That is the practical job of relaying: keep verified Bitcoin headers available for bridge operations. Running the relayer is open to anyone willing to pay the destination-chain gas; becoming a Locker means taking on the separate collateral requirement.