# On-Chain Gas Price Lookup by Chain

> On-Chain Gas Price Lookup by Chain is a paid API for AI agents from organiccryptoyyc.com:8443, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns the current gas price for a specified EVM-compatible blockchain in both wei and gwei units.

## Facts

- Endpoint: GET https://organiccryptoyyc.com:8443/v1/chain/%7Bchain%7D/gas-price
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/on-chain-gas-price-lookup-by-chain-1a5bfb90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qKzDLQZ4WFSYZKZWXfqFd

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 on-chain-gas-price-lookup-by-chain-1a5bfb90
```

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

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call gas price lookup across 38 chains without managing your own RPC infrastructure. It's ideal for agents that need real-time gas data across multiple EVM chains — including niche chains like peaq or Linea — and want to pay micro-amounts in USDC via x402 rather than subscribing to a monthly RPC plan.

## Known failure modes

- Unsupported chain identifier returns an error or empty response
- RPC node unavailable or rate-limited causing upstream timeout
- Malformed chain path parameter causing 400-class error
- Pocket Network gateway outage affecting non-native chains
- Stale gas price data if upstream RPC is lagging

## How this service works

Real-device, multi-region site verification with screenshot proof, live Pocket Network Shannon relay-demand/tokenomics/validator-security data, and on-chain RPC snapshots across 38 chains -- Ethereum, Solana, BSC, and peaq natively, plus 34 more EVM chains via Pocket Network's free public gateway (Arbitrum, Base, Optimism, Polygon, Avalanche, zkSync, Linea, Scroll, Gnosis, and more) -- 54 metered x402 routes, priced and settled per call in USDC. Migrating to Acurast decentralized cloud compute for censorship-resistant hosting -- stay tuned.

## Output

A JSON object containing the current gas price in wei (integer string) and gwei (float), along with the chain slug and human-readable chain name — e.g. {"wei":"12345678","gwei":0.012345678,"chain":"base","chainName":"Base"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "wei": "12345678",
  "gwei": 0.012345678,
  "chain": "base",
  "chainName": "Base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/on-chain-gas-price-lookup-by-chain-1a5bfb90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from organiccryptoyyc.com:8443](https://www.zero.xyz/host/organiccryptoyyc.com%3A8443/llms.txt)
