Gas tracker

X Layer gas tracker

Sampled 2026-10-07 12:25 UTC from our own X Layer nodes; refreshes every minute.

Standard
0.021
gwei
Base fee (next block)
0.02
gwei
Tip p10 / p50 / p90
1e-9 / 0.00093 / 0.043
gwei, last 10 blocks

What common actions cost now

Transfer (21,000 gas)4.4e-7 OKB
ERC-20 transfer (~65,000 gas)0.0000014 OKB
DEX swap (~150,000 gas)0.0000031 OKB

Execution gas only, at the standard price; real gas use depends on the contract. As a rollup, X Layer also charges an L1 data fee per transaction that is not included here.

Last 24 hours

Low 0.02 · median 0.02 · high 1.02 gwei (standard price, one sample a minute).

X Layer fee facts

  • Gas is paid in OKB.
  • Blocks arrive every 1.0 s (measured), and the base fee can change with every block.
  • X Layer uses EIP-1559 fees: set maxFeePerGas above the base fee and a maxPriorityFeePerGas tip.

Get fees in code

import { createPublicClient, http } from "viem";

const client = createPublicClient({ transport: http("https://rpc.swiftnodes.io/rpc/xlayer?key=YOUR_API_KEY") });

// EIP-1559 fees for the next X Layer block, from eth_feeHistory
const { maxFeePerGas, maxPriorityFeePerGas } = await client.estimateFeesPerGas();

Frequently asked questions

What is the gas price on X Layer right now?

At the last sample (2026-10-07 12:25 UTC) a standard X Layer transaction needed about 0.021 gwei: a base fee of 0.02 gwei plus a median tip of 0.00093 gwei. A plain transfer (21,000 gas) cost about 4.4e-7 OKB. The page updates every minute.

How much does X Layer gas vary in a day?

Over the last 24 hours the standard price ranged from 0.02 to 1.02 gwei, with a median of 0.02 gwei.

Gas on every chain at once: the multi-chain gas tracker. How fees are estimated: eth_feeHistory on X Layer.

X Layer endpoints are on the X Layer RPC page, and SwiftNodes has a free tier.