Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
LABS
Glossary

Relay Fee

A relay fee is a payment made to a third-party service (a relayer) for submitting a user's transaction to a blockchain network, often enabling gasless user experiences.
Chainscore © 2026
definition
BLOCKCHAIN INFRASTRUCTURE

What is a Relay Fee?

A relay fee is a payment made to a network intermediary for forwarding a transaction to a blockchain's mempool, distinct from the standard transaction fee paid to miners or validators.

A relay fee is a payment made to a network intermediary, known as a relayer, for the service of forwarding a user's transaction to a blockchain's mempool. This fee is separate from the standard transaction fee (or gas fee) paid to miners or validators for block inclusion and execution. Relayers operate as infrastructure nodes that accept, propagate, and sometimes bundle transactions, acting as a critical bridge between users and the decentralized network, especially in systems where direct submission is costly or complex.

This mechanism is most prominent in networks like Ethereum, where MEV (Maximal Extractable Value) searchers and block builders often act as relayers. A user or a dapp might pay a relay fee to ensure their transaction is included in a bundle sent to a trusted builder, improving its chances of timely and successful execution. The relay fee compensates the relayer for their operational costs, network connectivity, and the value of their order flow, but does not guarantee the transaction will be included in a block—that depends on the subsequent miner/validator fee.

The need for relay fees arises in advanced transaction routing strategies. For example, to avoid frontrunning or to execute complex DeFi arbitrage, traders submit transactions through private relay networks. These relays offer services like transaction privacy, ordering, and speed, for which they charge a fee. The ecosystem of relays, builders, and proposers forms a critical part of the MEV supply chain, with relay fees representing one layer of the total cost for sophisticated blockchain interaction.

It's crucial to distinguish a relay fee from a priority fee (tip). A priority fee is an extra incentive added on top of the base fee to encourage a validator to prioritize a transaction within a block. A relay fee, conversely, is paid before the transaction reaches the validator, for the service of propagation and potential bundling. Both can be paid in the same transaction, but they serve different actors in the pipeline.

The structure and prevalence of relay fees are evolving with blockchain scaling solutions. In Layer 2 rollups and other altchains, similar relay mechanisms exist for cross-chain messaging or batch submission. As the blockchain stack becomes more modular, with distinct roles for execution, settlement, and data availability, relay fees may become a standard cost component for ensuring reliable and efficient transaction delivery across various network layers.

how-it-works
BLOCKCHAIN INFRASTRUCTURE

How Does a Relay Fee Work?

A relay fee is a payment made to a network intermediary for forwarding a transaction to a blockchain, ensuring it is included in a block. This mechanism is essential for bridging users with different network access.

A relay fee is a payment made to a network intermediary, known as a relayer, for the service of forwarding a user's transaction to a blockchain's mempool. This is distinct from the standard gas fee or transaction fee paid to network validators. The relay fee compensates the relayer for its operational costs, which include monitoring the network, bundling transactions, and broadcasting them efficiently. This model is particularly critical in networks where users cannot directly submit transactions, such as in certain Layer 2 rollups or cross-chain bridges, or when users wish to pay fees in a token other than the network's native currency.

The workflow typically involves a user signing a transaction and sending it to a relayer's off-chain service. The relayer then pays the required network gas fee in the blockchain's native token (e.g., ETH on Ethereum) on the user's behalf. In return, the user pays the relayer a fee, which can be denominated in any agreed-upon asset, often via a meta-transaction. This enables gasless transactions for end-users and abstracts away the complexity of managing native tokens. Key protocols utilizing this pattern include Gas Station Network (GSN) for Ethereum dApps and various account abstraction implementations.

Relay fees are crucial for improving user experience and network accessibility. They allow applications to sponsor transaction costs for their users or let users pay with ERC-20 tokens. The fee amount is usually determined by a competitive marketplace; relayers set prices based on current network congestion, their own operational margins, and the perceived risk of the transaction. This system creates a vital piece of blockchain infrastructure, decoupling the entity that signs a transaction from the entity that funds its execution, thereby enabling broader adoption and more flexible economic models.

key-features
MECHANICS

Key Features of Relay Fees

Relay fees are the payment made to a third-party service for submitting a user's transaction to the blockchain network. They are a core mechanism for abstracting gas complexity and enabling sponsored transactions.

01

Gas Abstraction

A relay fee decouples the transaction cost from the native network gas token. Users can pay in any ERC-20 token (like USDC) or even have their transaction sponsored, removing the need to hold ETH or MATIC for gas. The relayer converts this fee to the native token to pay the network.

02

Paymaster Integration

Relayers typically interact with a Paymaster smart contract (ERC-4337 standard). This contract holds funds and logic to validate and pay for transactions. The relay fee is the service charge for operating this infrastructure, covering gas costs and providing profit margin.

03

Fee Calculation

The fee is calculated based on:

  • Current Network Gas Price: The base cost to execute the transaction.
  • Relayer Margin: A premium for the service, risk, and operational costs.
  • Token Exchange Rate: If paid in a non-native token, the fee accounts for price volatility and swap costs.
04

Transaction Sponsorship

A key use case is full sponsorship, where the dApp or a third party pays the relay fee on behalf of the user. This enables gasless transactions, drastically improving user onboarding by removing all cost barriers for the end-user.

05

Security & Non-Custodial Design

Proper relay systems are non-custodial. The relayer never controls the user's funds or private key. They only submit a signed transaction bundle. Security is enforced through smart contract rules in the EntryPoint and Paymaster contracts.

06

Competitive Relay Markets

In decentralized networks like Ethereum with ERC-4337, multiple relayers can compete to submit UserOperations. This creates a market where users or bundlers can choose a relayer based on fee price, reliability, and speed, driving efficiency.

ecosystem-usage
RELAY FEE

Ecosystem Usage & Protocols

A relay fee is a payment made to a third-party service, known as a relayer, for submitting a user's transaction to a blockchain network on their behalf. This mechanism is fundamental to meta-transactions and gas abstraction, enabling users to interact with dApps without holding the network's native token for gas.

01

Core Purpose & Abstraction

The primary purpose of a relay fee is to abstract gas costs from the end-user. Instead of requiring users to hold ETH (on Ethereum) or MATIC (on Polygon) to pay for transaction execution, a relayer pays the network fee upfront. The user then compensates the relayer with a fee, often paid in any ERC-20 token or even off-chain, creating a seamless onboarding experience.

03

Fee Payment Models

Relay fees can be structured in several ways:

  • Direct ERC-20 Transfer: The user's transaction includes a transfer of tokens to the relayer's address.
  • Fee-in-Destination: The fee is deducted from the assets involved in the transaction itself (e.g., a portion of swapped tokens).
  • Sponsored by dApp: The dApp protocol pays the relayer, treating it as a user-acquisition cost, resulting in gasless transactions for the user.
04

Security & Trust Assumptions

Relayers must be trusted to submit transactions promptly and honestly. Systems mitigate risk through:

  • Smart Contract Relayers: Using a decentralized network of relayers via a protocol like GSN.
  • Signature Verification: The user's intent is secured by their EIP-712 or EIP-2771 signed message, which the relayer cannot alter.
  • Whitelisting: dApps may use trusted relayers to prevent spam or front-running.
06

Economic Considerations

The relay fee market is influenced by:

  • Network Gas Prices: Relayer costs fluctuate with base layer congestion.
  • Competition: Multiple relayers may offer different fee rates.
  • dApp Subsidies: To drive adoption, protocols may subsidize fees, affecting the economic model. The fee must be priced to cover gas, operational costs, and provide a margin, while remaining attractive to users.
PAYMENT MECHANISM COMPARISON

Relay Fee vs. Traditional Gas Fee

A structural comparison of the two primary fee models for executing transactions on a blockchain.

FeatureTraditional Gas FeeRelay Fee (Paymaster)

Payer

End User (EOA)

Third-Party Dapp or Service

Payment Asset

Native Chain Token (e.g., ETH)

Any ERC-20 Token or Stablecoin

Fee Calculation

Gas Units * Gas Price + Priority Fee

Sponsorship Logic + Optional Markup

User Experience

Requires native token & wallet approval

Gasless; user may sign a meta-transaction

Settlement Layer

Base Layer (e.g., Ethereum L1)

Smart Contract (Paymaster) on the same layer

Abstraction Level

Layer 1 Protocol

Application Layer (Account Abstraction)

Primary Use Case

Standard user-initiated transactions

Dapp onboarding, subscriptions, batched actions

security-considerations
RELAY FEE

Security Considerations & Risks

Relay fees introduce specific security trade-offs and attack vectors in blockchain transaction processing, particularly for MEV extraction and cross-chain communication.

01

Frontrunning & MEV Extraction

Relay fees create a priority gas auction (PGA) environment where searchers bid to have their transactions included first. This can lead to maximal extractable value (MEV) exploitation, where relay operators or validators can frontrun user transactions for profit. Key risks include:

  • Sandwich attacks on DEX trades
  • Time-bandit attacks where validators reorg the chain for profitable MEV
  • Censorship of low-fee transactions
02

Relay Centralization Risk

High relay fees can lead to centralization of block production. Only well-capitalized relay operators can afford to participate, creating a barrier to entry. This reduces network resilience and increases single points of failure. In systems like Ethereum's PBS, a small set of dominant relays could:

  • Collude to manipulate transaction ordering
  • Censor specific addresses or applications
  • Create trust assumptions contrary to blockchain's permissionless ethos
03

Fee Market Manipulation

Relay operators can manipulate fee markets through strategic inclusion/exclusion of transactions. This creates several attack vectors:

  • Fee inflation through artificial congestion
  • Bid-laddering where relays encourage unnecessary fee wars
  • Cross-domain MEV exploitation across rollups and L2s
  • Oracle manipulation by prioritizing transactions that affect price feeds
04

Validator-Relay Collusion

The separation of block building (relays) and block proposing (validators) in proposer-builder separation (PBS) creates new trust models. Security risks include:

  • Bribery attacks where validators accept side payments from specific relays
  • Data withholding where relays provide incomplete block data
  • MEV stealing where validators extract and keep MEV meant for builders
  • Enshrined PBS vs. open market design trade-offs
05

Cross-Chain Bridge Vulnerabilities

In cross-chain messaging, relay fees introduce liveness vs. security trade-offs. Key risks for bridge relays include:

  • Data availability attacks where relays withhold critical message data
  • Fee griefing where attackers spam relays with low-fee transactions
  • Oracle manipulation through selective transaction inclusion
  • Delay attacks where economic incentives fail to ensure timely relay
06

Economic Security & Incentive Misalignment

Relay fee mechanisms must carefully balance incentive compatibility. Poorly designed systems can lead to:

  • Starvation attacks where honest participants are priced out
  • Bribe-and-censor attacks combining MEV extraction with censorship
  • Long-term reorg risks from profitable MEV opportunities
  • Protocol capture where relay economics favor specific applications or entities over network health
technical-details-eip-4337
FEE MECHANISM

Technical Details: EIP-4337 and Bundlers

This section details the fee mechanism that incentivizes network participants to process and submit UserOperations to the blockchain.

A relay fee is the compensation paid by a bundler to a relay for the service of forwarding and submitting a bundle of UserOperations to the blockchain. In the EIP-4337 (Account Abstraction) architecture, relays are optional network nodes that act as intermediaries, allowing bundlers to outsource the tasks of transaction propagation and on-chain submission. This fee compensates the relay for its operational costs, including gas expenditure and infrastructure overhead, and is distinct from the user's payment to the bundler for inclusion.

The relay fee mechanism is crucial for network scalability and decentralization. By separating the roles of bundling (aggregating operations) and relaying (broadcasting transactions), the system allows specialized actors to optimize for specific tasks. A bundler may choose to run its own relay to capture the full fee, or it may pay an external relay for its superior network connectivity and reliability. This creates a competitive market for relay services, where fees are typically negotiated off-chain and can be influenced by network congestion and the urgency of the transaction bundle.

Technically, the relay fee is not a direct on-chain payment but is embedded within the economic logic of the bundle. The bundler includes the relay's fee as part of its total cost calculation when constructing the bundle's transaction. The bundler's profit is the difference between the total fees collected from users (in ERC-20 tokens or the chain's native currency) and the sum of the gas costs for on-chain execution plus the relay fee. This structure ensures all participants are economically incentivized to keep the system running efficiently.

RELAY FEES

Common Misconceptions

Clarifying frequent misunderstandings about the costs and mechanisms of relaying transactions in blockchain networks.

A relay fee is a payment made to a relayer for submitting a user's transaction to a blockchain network, often used to abstract gas costs in meta-transaction systems. The process works by having a user sign a transaction intent off-chain, which is then packaged and submitted on-chain by a relayer who pays the network's gas fee. The user compensates the relayer for this service, typically with tokens, separate from the network's base gas cost. This architecture enables gasless transactions for end-users, as the relayer assumes the upfront cost and risk of transaction failure. Key protocols implementing this pattern include Gelato Network and OpenZeppelin Defender.

RELAY FEES

Frequently Asked Questions (FAQ)

A relay fee is a payment made to a third-party service for submitting a transaction to a blockchain network on behalf of a user. This section answers common questions about how they work, their costs, and their role in the transaction lifecycle.

A relay fee is a payment made to a third-party service, known as a relayer, for submitting a user's transaction to a blockchain network. It compensates the relayer for covering the network's gas fee (or base transaction cost) on the user's behalf, enabling gasless transactions. This model is central to meta-transaction systems and account abstraction (ERC-4337), where the transaction's sender and fee payer can be different entities. The fee is typically paid in the network's native token (e.g., ETH, MATIC) or sometimes in a separate token specified by the relayer.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected direct pipeline
Relay Fee: Definition & Role in Blockchain | ChainScore Glossary