Current chain tip block height via eth_blockNumber
x402-toolbox.shablony-pro.workers.dev/chain/block-number
Current chain tip block height via eth_blockNumber. Returns decimal block number and hex. Works on Base (default) or Ethereum via ?network=eth. Deterministic on-chain read via public RPC.
GET
https://x402-toolbox.shablony-pro.workers.dev/chain/block-numberUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-toolbox.shablony-pro.workers.dev/chain/block-number?schema=%3Cschema%3E");
console.log(await res.json());Example input
{
"schema": {
"queryParams": {
"network": {
"type": "string",
"required": false,
"description": "network"
}
}
}
}More from x402-toolbox
- x402-toolbox.shablony-pro.workers.dev/fun/dad-jokeA random dad joke from icanhazdadjoke (the largest dad joke selection on the internet). Setup+pun or one-liner.0.002
- x402-toolbox.shablony-pro.workers.dev/geo/driving-route-distanceDriving route between two coordinates via OSRM (OpenStreetMap): distance km, duration, road summary. Free public router, no key.0.002
