# NetIntel Gas Price API

> NetIntel Gas Price API is a paid API for AI agents from netintel.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns live gas prices and USD cost estimates for transfers, ERC-20 sends, and swaps across Base, Ethereum, Arbitrum, Optimism, and Polygon in a single call

## Facts

- Endpoint: GET https://netintel.dev/gas/price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-gas-price-api-bef36fb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_slp8nPUi3euCRxXkrGWqP

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 netintel-gas-price-api-bef36fb5
```

Example prompt: What are the current gas prices and USD cost estimates for a swap and a token transfer on Base, Ethereum, and Arbitrum right now?

## When to prefer this

Choose this endpoint when you need current gas prices and USD cost estimates across multiple EVM chains in a single call without managing separate RPC connections. It is ideal for agents that need to compare fees across Base, Ethereum, Arbitrum, Optimism, and Polygon simultaneously, or that need ready-made USD estimates for common operations (transfer, ERC-20 send, swap) rather than computing them from raw gwei. The 15-second cache makes it suitable for near-real-time decision-making without hammering RPC nodes.

## Known failure modes

- Unknown chain alias returns null entry for that chain
- All chains unavailable returns stale:true with empty chain data
- Malformed chains query param returns 400 or falls back to all chains
- Native token price feed outage causes native_usd to be null, disabling USD estimates
- Payment not included or insufficient causes 402 Payment Required before data is returned

## How this service works

Live gas prices across Base, Ethereum, Arbitrum, Optimism, and Polygon with USD cost estimates for a transfer, an ERC-20 send, and a swap — keyless, one call, all chains. Per chain: gas price + EIP-1559 base/priority fee in gwei, native-token USD price, 15s cache. L2 figures are execution-gas only (L1 data fee excluded, flagged in findings).

## Output

A JSON object keyed by chain name, each containing: gas_price_gwei, base_fee_gwei, priority_fee_gwei, native_token symbol, native_usd price, cache_age_seconds, and usd_estimates with separate USD costs for transfer, erc20_transfer, and swap. Also includes a top-level stale boolean and a findings array flagging caveats such as L2 L1 data fee exclusions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chains": {
       "type": "string",
       "description": "Comma list from base, ethereum, arbitrum, optimism, polygon; omit for all 5. Aliases: chain, network, networks; eth/arb/op/matic/pol accepted"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "stale": {
       "type": "boolean"
      },
      "chains": {
       "type": "object",
       "additionalProperties": {
        "type": [
         "object",
         "null"
        ],
        "properties": {
         "source": {
          "type": "string"
         },
         "native_usd": {
          "type": [
           "number",
           "null"
          ]
         },
         "native_token": {
          "type": "string"
         },
         "base_fee_gwei": {
          "type": [
           "number",
           "null"
          ]
         },
         "usd_estimates": {
          "type": "object",
          "properties": {
           "swap": {
            "type": [
             "number",
             "null"
            ]
           },
           "transfer": {
            "type": [
             "number",
             "null"
            ]
           },
           "erc20_transfer": {
            "type": [
             "number",
             "null"
            ]
           }
          }
         },
         "gas_price_gwei": {
          "type": [
           "number",
           "null"
          ]
         },
         "cache_age_seconds": {
          "type": "number"
         },
         "priority_fee_gwei": {
          "type": [
           "number",
           "null"
          ]
         }
        }
       }
      },
      "findings": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stale": false,
  "chains": {
   "base": {
    "source": "https://mainnet.base.org",
    "native_usd": 1829.645,
    "native_token": "ETH",
    "base_fee_gwei": 0.005,
    "usd_estimates": {
     "swap": 0.00219557,
     "transfer": 0.000230535,
     "erc20_transfer": 0.000713562
    },
    "gas_price_gwei": 0.006,
    "cache_age_seconds": 0,
    "priority_fee_gwei": 0.001
   },
   "ethereum": {
    "source": "https://ethereum-rpc.publicnode.com",
    "native_usd": 1829.645,
    "native_token": "ETH",
    "base_fee_gwei": 0.120496247,
    "usd_estimates": {
     "swap": 0.0438847,
     "transfer": 0.0046079,
     "erc20_transfer": 0.0142625
    },
    "gas_price_gwei": 0.119926866,
    "cache_age_seconds": 0,
    "priority_fee_gwei": 0.1
   }
  },
  "findings": [
   {
    "rule": "l2_data_fee_excluded",
    "detail": "base estimates are execution-gas only and exclude the L1 data fee"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-gas-price-api-bef36fb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel.dev](https://www.zero.xyz/host/netintel.dev/llms.txt)
