# Blockchain Gas State Lookup

> Blockchain Gas State Lookup is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the current gas/network state for a specified blockchain network (Base or Ethereum)

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/chain/gas-state?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-gas-state-lookup-b5b51e23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4B22aRKdr2DmiXZN_0qpO

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 blockchain-gas-state-lookup-b5b51e23 -d '<json body>'
```

Example prompt: What's the current gas state on the Base network right now — is it ready for transactions?

## When to prefer this

Use this endpoint when an AI agent or automated workflow needs to check live blockchain gas/network conditions on Base or Ethereum before executing or scheduling an on-chain transaction. Prefer this over manual RPC calls when you want a simple, machine-payable, standardized status check that abstracts away raw node queries.

## Known failure modes

- Invalid or unsupported network name returns an error (only 'base' and 'ethereum' are valid enum values)
- Payment failure or insufficient USDC balance blocks the request under x402 protocol
- Network connectivity issues to the railway.app backend may cause timeouts
- Malformed request body (missing required 'network' field) returns a validation error

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object indicating the current gas/network state for the requested blockchain (Base or Ethereum), including a status field such as 'ready' that signals whether the network is in an acceptable condition for transactions.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-gas-state-lookup-b5b51e23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
