Skip to content
EthNews

News from across Ethereum

What Is a Meta-Transaction on Ethereum? Who Pays Gas?

What is a meta transaction in Ethereum? It is a signed action a relayer submits and pays gas for, so users can trade without holding ETH for fees.

The EthNews Desk5 min read

What Is a Meta-Transaction on Ethereum? Who Pays Gas?

A meta-transaction on Ethereum is a signed message describing an action that a relayer submits on-chain and pays gas for. It changes who sends the transaction and covers the fee, while the user still authorizes the action with a signature.

What is a meta-transaction on Ethereum?

A meta-transaction separates signing an action from submitting its Ethereum transaction. With a normal transaction, your wallet signs and broadcasts the transaction, and you pay its gas in ETH. With a meta-transaction, you sign the action’s terms; a relayer packages and submits it, paying the on-chain gas.

On-chain, the relayer is the transaction sender. A contract can still recognize you as the person who authorized the action when it uses a trusted forwarder under EIP-2771. The forwarder passes the signed request to the contract, which recovers the original sender. Without that recognition, a contract may see only the relayer as the caller.

EIP-712 defines typed-data signatures that make the request’s fields legible to a wallet. Instead of signing an opaque blob, you may see structured terms such as the token, amount and deadline. The signature is an authorization for those terms; it is not itself an Ethereum transaction.

How does a meta-transaction work in a Matcha swap?

A Matcha swap can let a trader authorize an ERC-20 sale by signature, then have a relayer submit and settle the trade. Matcha swap is a decentralized exchange aggregator that finds routes across liquidity sources, and 0x Protocol is part of the trading context. Route choice and execution terms matter to the trade; matcha slippage describes how the executed price can differ from the quoted price.

The gasless part changes how the transaction fee is handled, not whether the trade has a cost. The relayer pays gas in ETH when it submits the transaction, while the cost is taken from the tokens sold. The user can therefore trade without holding ETH for that fee, but the trade still uses some of its sale proceeds to cover execution.

That differs from an ordinary wallet swap, where your wallet submits the transaction and pays gas from your ETH balance. In a relayed swap, you sign the sale terms and the relayer sends the on-chain transaction. “Gasless” describes the user’s fee payment path; it does not mean the network executes the transaction for free.

What does a meta-transaction signature authorize?

A meta-transaction signature authorizes the specific action and terms shown in the typed-data prompt. For a token sale, inspect the token, amount and deadline before signing. Those fields define what the relayer can submit under that signature.

The signature can be submitted until its deadline. The relayer decides when to submit it within that window, but cannot use the signature to change its signed terms. A request signed for one token and amount does not authorize a different token or amount; the contract checks the signature against the request it receives.

This is why a signature request should not be treated as a login prompt. A login signature establishes or proves control of an account for an application. A meta-transaction signature authorizes an action that can affect tokens or other contract state. Read the structured fields and the contract or application requesting them before approving.

After signing, the action is not yet confirmed on-chain. It becomes an on-chain transaction when the relayer submits it and the network processes it. The relayer may submit near the end of the deadline, so the user’s authorization remains usable during that period. The deadline limits how long the signed request can be submitted; it does not make the authorization a general-purpose permission.

What do readers ask about meta-transactions?

Which tokens can be traded gaslessly?

It depends on the swap interface, its supported assets and the relayer’s available routes. In a Matcha swap, the gas cost for a relayed ERC-20 sale comes from the tokens sold. Check the token and amount in the signature prompt; a gasless flow does not imply every token or route is supported.

Can a relayer refuse to submit my signature?

Yes. A signature authorizes a request, but the relayer is the party that submits it and pays gas. It can choose not to submit. If it does submit before the deadline, the signed terms still govern the request.

How do I revoke a signed message?

Use the revocation or cancellation option offered by the relevant application or contract, if available, and check whether the action has taken effect on-chain. A signature alone is not an on-chain transaction, so signing a later message does not automatically cancel the earlier one. Until it expires or is invalidated, the original request may remain submittable.

What is EIP-2612 permit?

EIP-2612 permit is a standard for authorizing an ERC-20 allowance with a signature. It can avoid a separate on-chain approval transaction, but it is distinct from a full meta-transaction: a permit grants token-spending allowance, while a relayed meta-transaction submits a signed action through a relayer.