Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man gas-price

/gas-price(1)

PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
gas-price gas price api / eip-1559 fee estimator / base + ethereum + optimism + arbitrum gas tracker / pre-tx cost estimator
synonym alias of gas-now-base — reuses the canonical handler.
SYNOPSIS
POST https://x402.org/v1/gas-price
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Gas price API / EIP-1559 fee estimator / Base + Ethereum + Optimism + Arbitrum gas tracker / pre-tx cost estimator. Reads the chain's latest block, derives base fee, suggests priority fees for safe-low/standard/fast tiers, computes total maxFeePerGas, and converts cost to USD for common tx types.

INPUTrequest schema
propertytypedescriptionreq?
chainstringEVM L1/L2 to read gas from. Default 'base'.
enum: base · ethereum · optimism · arbitrum · polygon
optional
OUTPUTresponse shape
fieldtypedescription
chainstringChain name queried (e.g. base, ethereum, optimism, arbitrum).
base_fee_gweistringLatest block's base fee per gas in gwei, derived from EIP-1559.
priority_fee_gweistringSuggested miner tip in gwei for the requested speed tier.
total_recommended_gweistringRecommended maxFeePerGas in gwei (base fee plus priority fee).
block_numberstringBlock height the base fee was read from.
eth_price_usdstringETH spot price in USD used to convert gas cost.
cost_usdstringEstimated total tx cost in USD for a common transaction type.
timestampstringISO-8601 UTC time the gas reading was taken.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/gas-price \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the gas-price tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketgas-priceeip-1559fee-estimatorbase-feepriority-feegas-tracker
methods
POST
cluster
edgemarket
price
$0.02 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
defi-llama-protocolDefiLlama protocol lookup — TVL, chain breakdown, current TVL, 24h/7d/30d changes, audits, parent protocol, categories.$0.02
gas-now-baseGas oracle / EIP-1559 fee estimator.$0.02
token-priceCrypto token price API / CoinGecko wrapper.$0.02
tx-receipt-decodeEVM transaction receipt decoder / log decoder / event log reader / Etherscan tx debug / receipt parser / Basescan tx explainer / tenderly…$0.02
tx-simulate-swapTx simulate swap / pre-trade quote / DEX swap simulator / 1inch + LlamaSwap quote / would-it-succeed check.$0.02
bridge-ratesCross-chain bridge rate aggregator.$0.03
dao-proposal-monitorSnapshot.org DAO proposal monitor.$0.03
ens-resolveENS resolver / Ethereum Name Service lookup.$0.03
SEE ALSO
agentutility(7) · edgemarket(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org