# Agent Margin Router – Live EIP-1559 Gas Fees

> Agent Margin Router – Live EIP-1559 Gas Fees is a paid API for AI agents from agent-margin-router-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-14).

Returns live EIP-1559 gas fees (slow/standard/fast tiers) and USD transaction costs for common operation types across Base, Ethereum, Arbitrum, Optimism, and Polygon.

## Facts

- Endpoint: POST https://agent-margin-router-production.up.railway.app/gas-fees?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-margin-router-live-eip-1559-gas-fees-5013edc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oToCfnfezvGNXNmyaFzC5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-margin-router-live-eip-1559-gas-fees-5013edc1 -d '<json body>'
```

Example prompt: What are the current EIP-1559 gas fees on Ethereum right now — slow, standard, and fast tiers — and how much would a swap and an ERC-20 transfer cost in USD?

## When to prefer this

Choose this endpoint when you need real-time, multi-tier EIP-1559 gas estimates with USD cost breakdowns for specific transaction types (transfer, swap, NFT mint) across five major EVM chains — especially useful for agents making cost-aware transaction decisions without needing an API key.

## Known failure modes

- Unsupported chain name returns error — must be one of: base, ethereum, arbitrum, optimism, polygon
- RPC node unavailability may cause stale or missing data
- Cache age too short may result in rate limiting or slower responses
- Payment failure via x402 (insufficient USDC/USDT balance) blocks access after 3 free calls

## How this service works

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.

## Output

Returns current EIP-1559 gas fee tiers (slow, standard, fast in gwei/gas price units) and estimated USD costs for common transaction types — ETH transfer, ERC-20 transfer, swap, and NFT mint — for the requested chain, sourced from live public RPC nodes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "base | ethereum | arbitrum | optimism | polygon (default base)."
  },
  "max_age_seconds": {
   "type": "integer",
   "description": "Max cache age (default 10)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-margin-router-live-eip-1559-gas-fees-5013edc1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-margin-router-production.up.railway.app](https://www.zero.xyz/host/agent-margin-router-production.up.railway.app/llms.txt)
