Learn · Fees
Gas fees explained across chains
Gas is what you pay the network to process your transaction, and it works differently enough across chains that a habit which is cheap on one can be expensive on another. Understanding gas — base fees, priority fees, and why a failed transaction still costs money — helps you time trades, avoid getting stuck, and choose the right network for a given trade size. This article explains the gas model on Ethereum, layer-2 networks, and Solana, and how each shapes your real cost.
What gas actually pays for
Ethereum mainnet: base fee plus tip
Layer 2s: cheaper execution, anchored to Ethereum
Solana: priority fees instead of auctions
Why failed transactions still cost gas
Legal
Risk disclosure
XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.
Frequently asked questions
Does gas depend on how much I trade?
Largely no. Gas pays for computation, which is similar regardless of trade value, so small trades feel gas-heavy while large trades barely notice it.
Why is Ethereum mainnet sometimes so expensive?
Its base fee rises with demand and spikes during mints and volatility. For small or frequent trades, a layer 2 is usually far cheaper.
How is Solana gas different?
Solana uses a tiny base fee plus an optional priority fee during congestion rather than an auction. Keep some SOL available so transactions are never blocked.
Why did I pay gas for a failed transaction?
Because validators performed work up to the failure point. Set slippage sensibly and keep a gas buffer to avoid paying for avoidable reverts.
Trade on XAUConnect
Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.
Continue exploring
Related markets, guides & networks
Curated next steps based on this topic — deepen your research before you trade.
How to calculate price impact
Price impact explained with worked intuition: how trade size moves the AMM curve, how the quote shows it, why it differs
How to connect a Phantom wallet on Solana
Connect Phantom to swap SPL tokens on Solana: secure the wallet, read the transaction simulation, and manage priority fe
What is a multi-hop swap?
When no direct pool exists, trades route through an intermediate token. How multi-hop swaps work, why each hop adds cost
What is MEV and how does sandwiching work?
MEV, front-running, and sandwich attacks explained: how public mempools expose your pending swap, how a sandwich profits
Wrapped and bridged tokens explained
Why WETH, wrapped BTC, and bridged USDC exist, how they differ from the native asset, and the decimals and contract chec
Build programmatically
Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.