RPC method

eth_maxPriorityFeePerGas on X Layer

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_maxPriorityFeePerGas on X Layer through the same endpoint customers use, and is re-measured weekly.

What eth_maxPriorityFeePerGas does

Returns the node's suggested priority fee (tip) per gas for an EIP-1559 transaction, in wei. Libraries such as viem and ethers fill maxPriorityFeePerGas from it by default, so its accuracy decides what your users pay.

eth_maxPriorityFeePerGas on X Layer: what we measured

Suggested tip0.00100 gwei
Median tip paid (median of the per-block medians, last 20 blocks)1 wei
Base fee0.0200 gwei

Should you use the suggestion?

The suggestion is 1000000 times the median tip paid. Any library that fills the tip from eth_maxPriorityFeePerGas overpays by that factor on X Layer; take the tip from eth_feeHistory percentiles instead.

Chains where the suggested tip is far above what is paid

On 28 of the chains we measure, the suggested tip was at least ten times the median tip paid (or the median paid was zero).

Example request

curl -s https://rpc.swiftnodes.io/rpc/xlayer?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_maxPriorityFeePerGas","params":[]}'
import { createPublicClient, http } from "viem";

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

// Tip from what recent blocks paid, not the node's suggestion
const { reward } = await client.getFeeHistory({ blockCount: 20, rewardPercentiles: [50] });
const tips = reward!.map((r) => r[0]).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
const maxPriorityFeePerGas = tips[Math.floor(tips.length / 2)];

await wallet.sendTransaction({ to, value, maxPriorityFeePerGas });

Other methods on X Layer

eth_maxPriorityFeePerGas on other chains

Frequently asked questions

Does X Layer support eth_maxPriorityFeePerGas?

Yes. eth_maxPriorityFeePerGas answered on the SwiftNodes X Layer endpoint when our weekly probe called it through the customer path (2026-10-13).

What priority fee should I use on X Layer?

The median tip paid over the last 20 blocks was 1 wei on 2026-10-13; the node suggested 0.00100 gwei. Take the tip from eth_feeHistory percentiles.

X Layer endpoints, live block height and WebSocket status are on the X Layer RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.