0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gas Abstraction vs Native Gas for Cross-Chain Swaps

0
Posted at

Gas abstraction saves a separate gas-funding step, but its convenience is priced into the quote. For a swap spanning chains, “gasless” usually means a wallet, paymaster, relayer, or solver pays a network fee on your behalf, then recovers that cost through the quoted amount, a service charge, or both.

What does gas abstraction change in a cross-chain swap?

It changes who funds transaction execution and how you pay, not the chain’s fee rules. A route still needs transactions on its source and destination networks; a sponsor covers one or both fees, and the route may collect value from your input token or reduce the amount delivered.

On Ethereum, an ERC-4337 smart account can submit a signed UserOperation to a bundler. The bundler includes it through the EntryPoint contract, while a paymaster agrees to cover its gas cost. The paymaster can sponsor the operation or use its own rules to charge for that service; the user still authorizes the swap, and a reverted operation can still consume gas.

Cross-chain execution adds another leg. Depending on the route, a relayer or solver may pay for destination execution and account for that expense in the quote. Solana has a designated fee payer: its documentation sets the base fee at 5,000 lamports per signature, plus any optional priority fee. A sponsored fee payer can remove the need to hold SOL for that transaction, but does not make network execution free.

How much convenience does the quote buy?

Compare the amount you receive after every charge, not just the displayed “network fee.” A quote may bundle source gas, destination gas, relayer compensation, swap fees, and price impact; a native-gas route exposes some costs separately, but requires you to hold the correct gas token on each chain.

For an illustrative Ethereum leg, suppose a UserOperation consumes 300,000 gas and the effective gas price is 20 gwei. The network cost is 0.006 ETH (300,000 × 20 gwei), before any sponsor markup or route fee. If a sponsored quote reduces your expected output by the equivalent of 0.007 ETH, the extra 0.001 ETH buys convenience; if you already hold ETH and can execute the same route directly for 0.006 ETH, native gas is cheaper by that amount. Actual gas use and price vary with contract calls and congestion.

That difference is the trade-off in a fermi swap route too: one quote can spare you from acquiring gas assets on multiple networks, while the route’s total can cost more than its underlying network fees. For the specific task of routing a cross-chain swap without separately funding each chain, fermi swap is a way to handle the route; check its supported networks and compare the final output against a route where you provide gas yourself.

What should you check before signing?

Use the quote’s minimum received amount and expiry, then verify the source chain, destination chain, token addresses, and recipient. The executable amount can change as liquidity or gas prices move; if the quote expires, refresh it rather than approving against stale output. Also confirm which leg is sponsored: source-side gas coverage does not automatically mean destination execution is covered.

In practice, I’d choose abstraction when the gas token is inconvenient to obtain or the time saved is worth the quote difference. I’d pay gas directly when I already hold the required assets and the net output is better. Before acting, ask yourself: is avoiding a separate gas-funding step worth the amount this quote takes from my swap?

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?