L

Latest Block Number · Chain Block Number

by Latest Block Number

GETBaseSolana

$0.001

per call · USD Coin on Base

The current chain tip (latest block height) via eth_blockNumber, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The freshness read settlement, indexing and trading agents poll to know where the chain is. Live public RPC; one paid call.

Endpoint

GET https://store.agentexchange.work/chain/block-number

4

Calls / 30d

4

Unique payers / 30d

Sep 9

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://store.agentexchange.work/chain/block-number", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://store.agentexchange.work/chain/block-number?chain=base" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "block_number": 47234186,
  "chain": "base"
}

Payment details

Pay to0xc91ce6291edc0713ec753bafba002506ffb2b95c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Latest Block Number & similar services