Gas fees FAQ

Published on 17 Feb 2025Updated on 10 Jul 20266 min read298

What are gas fees on the Web3 ecosystem, and why do they matter?

Gas fees are small amounts of cryptocurrency required to process transactions on a blockchain. They're essential for maintaining the network’s functionality and compensating miners or validators for their work in verifying and adding transactions to the blockchain ledger.

Why do I need to pay gas fees?

Gas fees ensure that the blockchain network remains secure and operational, as every transaction utilizes the network's computation and storage resources, incurring costs to maintain system integrity and functionality. When you send funds, interact with smart contracts, or perform other blockchain actions, miners or validators prioritize your transaction based on the gas fee you offer. Higher fees often lead to faster transaction processing.

How are gas fees calculated?

Gas fees are determined by three key factors:

  • Gas price: the cost per unit of gas, often influenced by network demand.

  • Gas limit: the maximum amount of gas your transaction can consume. Complex actions, like interacting with smart contracts, require higher gas limits.

  • Network traffic: during high traffic periods, fees may increase as users compete for transaction processing.

For example, on Ethereum, the formula is:

Gas Fee = Gas Limit × Gas Price

However, there are other blockchains such as Tron, Solana, and Sui, that use different concepts to determine their gas fees. Tron, for example, determines its gas fees as below:

  • Bandwidth: most transactions on the Tron blockchain consume bandwidth, with each account receiving 5000 free bandwidth daily. Insufficient bandwidth requires burning TRX, with 1 bandwidth equaling 0.001 TRX. Simple TRX transfers typically consume a fixed 268 bandwidth.

  • Energy: energy is required for smart contract executions, with consumption varying by contract complexity. Obtained through staking TRX, energy costs 280 sun per unit when burned. TRX and TRC-10 transfers bypass energy use, but TRC-20 transfers and contract interactions require both energy and bandwidth.

  • Account activation: new accounts must be activated to function on-chain, incurring a 1 TRX creation fee and additional bandwidth or energy costs, depending on the activation method.

  • Transaction fee calculation: fees combine bandwidth and energy consumption, with TRC-20 token transfers needing both, while TRX/TRC-10 transfers typically require only bandwidth.

  • Resource sufficiency: accounts with staked bandwidth or energy avoid additional TRX costs, while those without relying on burning TRX to cover resource deficits.

  • Transaction size: larger transactions consume more bandwidth, leading to higher costs.

  • Network conditions: Network congestion impacts resource availability, potentially increasing fees.

*Numbers and references are current as of 17 February 2025.

How much gas fee is required to transfer crypto?

The estimated gas fee is displayed on the wallet's transferring page before you confirm the transaction.

Gas fees are charged on a per-transaction basis and aren't determined by the amount of crypto being sent. As gas fees fluctuate in real time based on network conditions, please refer to the fee displayed on the transaction confirmation page.

Before sending crypto, ensure that your wallet has sufficient balance to cover the gas fee. Please note that gas fees paid for failed transactions are non-refundable.

What should I do if I see an insufficient gas fees message?

You'll need to top up the mainnet token of the corresponding network to complete the transfer. For example, sending USDT on TRON requires TRX to cover the network fee.

Here are the mainnet tokens required for each network:

  • Bitcoin: BTC

  • Ethereum: ETH

  • X Layer: OKB

  • Solana: SOL

  • BNB Chain: BNB

  • TON: TON

  • TRON: TRX

  • Aptos: APT

How do I top up my network fees?

Method 1: use the Gas station (App version 6.166.0 or later)

Gas station allows you to pay blockchain network fees (gas fees) using stablecoins (USDC, USDT, or USDG), eliminating the need to hold native tokens such as ETH or BNB in advance.

Here's how it works: a third-party Relayer service first advances the required native token to pay the gas fee. Within the same transaction, the system automatically deducts an equivalent amount from your selected stablecoin and reimburses the Relayer.

Steps:

  1. Open the OKX Wallet app and send your desire crypto.

  2. On the sending confirmation page, select Gas station

  3. Select your preferred payment crypto, and tap Confirm to continue sending your crypto

Method 2: deposit from another wallet

Transfer the required mainnet token from another wallet or platform directly to your Web3 wallet.

Method 3: withdraw from your OKX exchange account

If you hold the required asset on your OKX exchange account, withdraw it directly to your OKX Wallet.

What if I don't have the required asset in my OKX exchange account?

You can use P2P trading or Convert on OKX to obtain the required mainnet token, then withdraw it to your OKX Wallet.

Are the transfer gas fees fixed?

No. Gas fees fluctuate in real time. Always refer to the fee displayed on the withdrawal page for the most accurate amount.

How can I reduce gas fees?

Here are some practical tips to minimize gas fees:

  • Choose off-peak hours: fees are lower when the network has less activity. Use tools like gas trackers to monitor optimal times.

  • Set custom fees: on platforms like our Web3 Wallet, you can manually adjust gas fees. Lower fees may result in slower transaction times.

  • Use Layer 2 solutions: explore Layer 2 networks like Arbitrum or Polygon for lower-cost transactions.

  • Batch transactions: combine multiple actions into a single transaction when possible.

  • Avoid overestimating gas limits: use tools that suggest appropriate limits to avoid overpaying.

Where can I check gas fees?

You can view current gas fee estimates directly in our Web3 Wallet when initiating a transaction. Additionally, external gas tracking tools like Etherscan provide real-time fee insights for Ethereum and other networks.

How does OKX help optimize gas fees?

Our Web3 Wallet is designed to provide transparent gas fee recommendations tailored to your selected blockchain. By offering real-time network insights and flexible gas settings, we aim to give users greater control over their transactions.

For other details on the Web3 Wallet, visit here to learn more.