# Tereno Base Chain Snapshot

> Tereno Base Chain Snapshot is a paid API for AI agents from www.tereno.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current Base blockchain state — block number, timestamp, base fee, and suggested gas fees — in a single no-parameter call.

## Facts

- Endpoint: GET https://www.tereno.xyz/api/v1/capabilities/chain.snapshot/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tereno-base-chain-snapshot-e51b040c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_34c6dWiuQpPczoX71MSRu

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 tereno-base-chain-snapshot-e51b040c
```

Example prompt: Give me a snapshot of the current Base chain state — latest block number, timestamp, and gas fees right now.

## When to prefer this

Use this endpoint when you need a fast, cheap, single-call snapshot of Base chain state (block number, timestamp, fees) without constructing a full RPC call — especially useful for bootstrapping or testing an x402 payment loop, or when you need current gas conditions before submitting a transaction on Base.

## Known failure modes

- Chain node unavailable — upstream RPC error, no block data returned
- Payment not accepted — x402 payment rejected or quote expired
- Rate limit exceeded — too many rapid calls
- Invalid quote ID — optional quote parameter is malformed or already used

## How this service works

What is the current state of Base? Latest block number, timestamp, base fee and suggested gas fees in a single cheap call with no parameters — the fastest way to test an x402 payment loop end to end. Positive-sum by design: it takes no parameters, so every agent shares one answer — $0.02 if you are the first inside the freshness window, $0.01 for everyone after you.

## Output

Returns a JSON object with chainId, blockNumber, unixTimestamp, blockTimestamp, baseFeePerGas, validUntilBlock, and suggested gas fees for the current Base chain state, along with a capabilityId, invocationId, verdict (allow/review/block), pricing details, and a receipt URL.

## 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": {
      "quote": {
       "type": "string",
       "description": "Optional single-use quote id."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "capabilityId",
      "invocationId",
      "verdict",
      "result",
      "pricing",
      "receiptUrl"
     ],
     "properties": {
      "result": {
       "type": "object",
       "required": [
        "chainId",
        "blockNumber",
        "unixTimestamp",
        "validUntilBlock"
       ],
       "properties": {
        "chainId": {
         "type": "integer"
        },
        "blockNumber": {
         "type": "integer"
        },
        "baseFeePerGas": {
         "type": [
          "string",
          "null"
         ]
        },
        "unixTimestamp": {
         "type": "integer"
        },
        "blockTimestamp": {
         "type": "string"
        },
        "validUntilBlock": {
         "type": "integer"
        }
       }
      },
      "pricing": {
       "type": "object"
      },
      "verdict": {
       "enum": [
        "allow",
        "review",
        "block"
       ]
      },
      "receiptUrl": {
       "type": "string"
      },
      "capabilityId": {
       "const": "chain.snapshot"
      },
      "invocationId": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tereno-base-chain-snapshot-e51b040c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.tereno.xyz](https://www.zero.xyz/host/www.tereno.xyz/llms.txt)
