Agent Margin Router – Gas Fees: Live EIP-1559 gas fees (slow/standard/fast tiers) plus USD
Agent Margin Router – Gas Fees: Live EIP-1559 gas fees (slow/standard/fast tiers) plus USD cost per transaction type (transfer, ERC-20 transfer, swap, NFT mint) for Base, Ethereum, Arbitrum, Optimism and Polygon. Aggregated from public RPC nodes – no API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
5000 (raw units)
price
3
calls / 30d
1
unique payers
2026-09-16
updated
Provider
agent-margin-router-production.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xf7a181bbe5d29924e800df4ba93418ef94f4e7c2",
"asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"chain": "base"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"base_fee_gwei": 0.0051,
"block_number": 21000000,
"chain": "base",
"chain_id": 8453,
"cost_usdc": 0.005,
"freshness_seconds": 0,
"gas_price_gwei": 0.0062,
"native_price_usd": 3412.5,
"native_token": "ETH",
"routing": {
"cache_hit": false,
"latency_ms": 310,
"provider": "onchain"
},
"tiers": {
"standard": {
"cost_usd": {
"swap": 0.0036,
"transfer": 0.0005
},
"max_fee_gwei": 0.0071,
"priority_fee_gwei": 0.001
}
},
"trend": "stable"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"chain": {
"description": "base | ethereum | arbitrum | optimism | polygon (default base).",
"type": "string"
},
"max_age_seconds": {
"description": "Max cache age (default 10).",
"type": "integer"
}
},
"required": []
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent-margin-router-production.up.railway.app/gas-fees" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent-margin-router-production.up.railway.app/gas-fees");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent-margin-router-production.up.railway.app/gas-fees")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/15158.json, and this resource appears in /discovery/resources and /discovery/search.