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

/gas-price-api

agentutility / edge-market / gas-price-api
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
gas-price-api gas price api / eip-1559 gas fee endpoint / blockchain transaction fee estimator
synonym alias of gas-now-base — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/gas-price-api
     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 gas fee endpoint / blockchain transaction fee estimator. Same gas-price handler, discoverable for agents estimating base fee, priority fee tiers, maxFeePerGas, and USD transaction costs for Base, Ethereum, Optimism, and Arbitrum.

INPUTrequest schema
propertytypedescriptionreq?
chainstringEVM L1/L2 to read gas from. Default 'base'.
enum: base · ethereum · optimism · arbitrum · polygon
optional
OUTPUTresponse shape
fieldtypedescription
chainstring
standardstring
sourcestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/gas-price-api \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the gas-price-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
gaspriceapigas-price-api
methods
POST
cluster
edgemarket
price
$0.02 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
coin-priceCoin price API / crypto spot price / BTC ETH SOL quote lookup.$0.02
crypto-priceCrypto price lookup / coin price API / BTC ETH SOL price / on-chain token spot price / contract-address quote API.$0.02
crypto-token-priceCrypto token price API / token quote lookup / ERC-20 SPL token market data.$0.02
defi-llamaDefiLlama API / DeFi TVL protocol lookup.$0.02
defi-llama-apiDeFiLlama API / DeFi protocol TVL lookup / protocol fundamentals.$0.02
defi-llama-protocolDefiLlama protocol lookup / DeFi TVL fetcher / total value locked / chain-breakdown of TVL / Aave + Lido + Uniswap + MakerDAO TVL / proto…$0.02
defi-tvlDeFi TVL API / total value locked by protocol.$0.02
defillamaDefiLlama protocol TVL lookup / DeFi protocol metadata.$0.02
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org