# NetIntel Gas Price API

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

Returns real-time EVM gas prices (base fee, priority fee, gas price in gwei) and USD cost estimates for common operations across up to 5 EVM chains

## Facts

- Endpoint: GET https://netintel-production-440c.up.railway.app/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-c6c1862e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dYx1wzteX9OXuYNm9SpeE

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-c6c1862e
```

Example prompt: What are the current gas prices on Base and Ethereum right now — give me gwei figures and estimated USD cost for a token swap and a simple ETH transfer on each chain?

## When to prefer this

Use this endpoint when you need live EVM gas price data in both gwei and USD across multiple chains simultaneously without managing RPC connections yourself. Prefer it over direct RPC calls when you need USD cost estimates pre-computed for standard operations (swap, ETH transfer, ERC20 transfer) and want multi-chain comparison in a single call. Ideal for agents making cost-aware decisions about when and where to execute on-chain transactions.

## Known failure modes

- Upstream RPC unavailable — data marked stale or chain entry returned as null
- Invalid chain name passed — ignored or validation rejection with no charge
- All chains stale — stale:true with cached data returned
- Network timeout from Railway host — server error, no charge per NetIntel policy

## How this service works

Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).

NetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.

## Output

A JSON object keyed by chain name, each containing: gas_price_gwei, base_fee_gwei, priority_fee_gwei, native_token (e.g. ETH), native_usd price, usd_estimates for swap/transfer/erc20_transfer, cache_age_seconds, and a data source URL. A top-level stale boolean and a findings array flag caveats like L2 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-c6c1862e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel-production-440c.up.railway.app](https://www.zero.xyz/host/netintel-production-440c.up.railway.app/llms.txt)
