# AgentShelf Chain Info

> AgentShelf Chain Info is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Returns chain ID, network name, latest block number, gas price, and block age for Base or Ethereum mainnet via two read-only RPC calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/chain-info?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-chain-info-2dcbaa6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BwDUfiDnQKBs0PeAoytLA

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 agentshelf-chain-info-2dcbaa6d -d '<json body>'
```

Example prompt: What's the current chain ID, latest block number, gas price, and block age on Base mainnet right now?

## When to prefer this

Use this endpoint when an agent needs a quick, low-cost read-only snapshot of Base or Ethereum mainnet chain state — including chain ID confirmation, current block, gas price, and block freshness — without setting up a full RPC connection. Especially useful for pre-flight checks before transactions, network health monitoring, or confirming chain identity. The sandbox endpoint (/v1/sandbox/chain-info) can be tried first at no cost.

## Known failure modes

- Invalid chain value (not 'base' or 'ethereum') returns a validation error
- RPC node unreachable or timeout may cause a 500 or delay
- Payment not received or insufficient USDC results in 402 Payment Required
- Malformed JSON body returns 400 Bad Request

## How this service works

Call when an agent needs the chain id, network name, latest block, gas price, and block age for Base or Ethereum. Send chain base or ethereum. Default is base. Two read-only RPC calls. No spend. Send JSON {"chain":"base"}. Exact $0.001 USDC on Base. Try unpaid POST /v1/sandbox/chain-info first.

## Output

Returns a JSON object containing chain ID (e.g. 8453 for Base), network name, latest block number, current gas price (in wei or gwei), and block age (seconds since last block) for the requested chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum"
   ],
   "type": "string",
   "default": "base",
   "examples": [
    "base"
   ],
   "description": "Chain to read. base is Base mainnet (default, chain id 8453). ethereum is Ethereum mainnet (chain id 1). Example: base."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-chain-info-2dcbaa6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
