Tereno Base Chain Snapshot · Chain Snapshot Invoke

by Tereno Base Chain Snapshot

GETBase

$0.002

per call · USD Coin on Base

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.

Endpoint

GET https://www.tereno.xyz/api/v1/capabilities/chain.snapshot/invoke

9

Calls / 30d

6

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://www.tereno.xyz/api/v1/capabilities/chain.snapshot/invoke", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://www.tereno.xyz/api/v1/capabilities/chain.snapshot/invoke" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "capabilityId": "chain.snapshot",
  "capabilityVersion": "1.0.0",
  "invocationId": "uuid",
  "pricing": {
    "actualCacheStatus": "miss",
    "creditAppliedUsd": 0,
    "currency": "USDC",
    "listPriceUsd": 0.001,
    "pricePaidUsd": 0.001,
    "quotedCacheStatus": "miss"
  },
  "receiptUrl": "/api/v1/receipts/uuid",
  "result": {
    "baseFeePerGas": "4523161",
    "blockNumber": 123456,
    "blockTimestamp": "2026-07-22T12:00:00.000Z",
    "chainId": 8453,
    "computedAtBlock": 123456,
    "network": "eip155:8453",
    "reasonCodes": [
      "CHAIN_OBSERVED"
    ],
    "suggestedMaxFeePerGas": "9046322",
    "suggestedMaxPriorityFeePerGas": "1000000",
    "unixTimestamp": 1784721600,
    "validUntilBlock": 123458,
    "verdict": "allow"
  },
  "verdict": "allow"
}

Payment details

Pay to0xfbf218accbb0d57fc4e8fc3e2a885c910c4c9e94
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Tereno Base Chain Snapshot & similar services