Current block height for Base Sepolia
Current block height for Base Sepolia. Returns the latest block number as an integer, read from the chain at request time.
1000 (raw units)
price
62
calls / 30d
1
unique payers
2026-09-17
updated
Provider
shelf-production-43b5.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:84532",
"payTo": "0x4a880a80E616f35B0A0754F00ac72Cf745e5Fc29",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"blockHeight": "31000000",
"network": "eip155:84532",
"observedAt": "2026-09-17T15:00:00.000Z"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"blockHeight": {
"description": "Latest block number on Base Sepolia, decimal string",
"type": "string"
},
"network": {
"description": "CAIP-2 chain id, always eip155:84532",
"type": "string"
},
"observedAt": {
"description": "ISO 8601 time the chain was read",
"type": "string"
}
},
"required": [
"blockHeight",
"network",
"observedAt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://shelf-production-43b5.up.railway.app/v1/sepolia/block-height/q1" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://shelf-production-43b5.up.railway.app/v1/sepolia/block-height/q1");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://shelf-production-43b5.up.railway.app/v1/sepolia/block-height/q1")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14500.json, and this resource appears in /discovery/resources and /discovery/search.