Relayer

A relayer is an off-chain service that carries data or signed transactions from one place to another, such as between two blockchains, or that submits a user's signed transaction on-chain and pays the gas fee on their behalf.

Relayers fill a basic gap: blockchains cannot read each other's data or reach out on their own. In cross-chain systems, a relayer watches one chain for messages, such as a token transfer, and submits them with supporting proof to another chain. In gasless (meta-transaction) setups, a user signs a transaction off-chain and a relayer broadcasts it and pays the gas. The user's signature means the relayer cannot change what was approved.

For users, relayers are what make many bridges and gas-free app interactions work behind the scenes. In the Inter-Blockchain Communication (IBC) protocol, for example, sending tokens from one Cosmos chain to another depends on a relayer picking up the transfer packet and delivering it with a cryptographic proof. The receiving chain checks that proof with a light client, so the relayer only acts as a messenger. Anyone can run an IBC relayer.

A common misconception is that relayers are always trusted, or always trustless. It depends on the design. Where the destination chain verifies proofs itself, a relayer can at worst delay or refuse to deliver a message, which can leave a transfer stuck until another relayer steps in. In some bridges, however, a small set of relayers or validators simply vouches that an event happened. If those parties are compromised or collude, they can approve fake messages and drain funds. Knowing which model a bridge uses is key to judging its risk.

Related terms