# Polyform Crypto Gas Price API

> Polyform Crypto Gas Price API is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns the current gas price on the Base blockchain in both wei and gwei units

## Facts

- Endpoint: GET https://api.polyform.org/v1/crypto/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-crypto-gas-price-api-31a97657
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MtfYUWMzdrO2rghe_CsTV

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 polyform-crypto-gas-price-api-31a97657
```

Example prompt: What's the current gas price on Base right now — give me the value in both wei and gwei?

## When to prefer this

Choose this endpoint when you need a quick, no-account gas price lookup specifically for the Base L2 network and want to pay per call with USDC micropayments rather than managing API keys or subscriptions. Ideal for AI agents that need on-demand blockchain fee data without provisioning credentials.

## Known failure modes

- Base RPC node unavailable or congested — may return a 502 or timeout
- Payment not received or malformed x402 header — returns 402 Payment Required
- Rate-limiting or transient network issues causing 503 responses
- Stale gas price data if upstream node is lagging behind the chain tip

## How this service works

Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.

## Output

Returns a JSON object with the chain name ('base'), the current gas price in wei as a string, and the gas price in gwei as a decimal number. Example: {chain: 'base', gasPriceWei: '6000000', gasPriceGwei: 0.006}.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "gasPriceWei": "6000000",
  "gasPriceGwei": 0.006
 }
}
```

## More

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