{
  "x402Version": 2,
  "id": 15158,
  "slug": "15158",
  "resource": "https://agent-margin-router-production.up.railway.app/gas-fees",
  "description": "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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xf7a181bbe5d29924e800df4ba93418ef94f4e7c2",
      "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agent-margin-router-production.up.railway.app",
  "lastUpdated": "2026-09-16T13:03:20.255Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-16T13:03:20.072Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent-margin-router-production.up.railway.app",
    "manifest_name": "agent-margin-router-production.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}