new.shuiyun.us.ci/x402/v1/rpc/block-number
Latest block height on Base or Ethereum mainnet (eth_blockNumber), decimal + hex.
GET
https://new.shuiyun.us.ci/x402/v1/rpc/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://new.shuiyun.us.ci/x402/v1/rpc/block-number?chain=base");
console.log(await res.json());Example input
{
"chain": "base"
}More from Harvest EVM RPC
- new.shuiyun.us.ci/x402/v1/rpc/balanceNative coin balance (ETH) for any EVM address, wei + decimal ether.0.002
- new.shuiyun.us.ci/x402/v1/rpc/callRead-only contract call (eth_call) with arbitrary calldata.0.002
- new.shuiyun.us.ci/x402/v1/rpc/chain-infoEVM network info: chainId, latest block, gas price (wei + gwei).0.002
- new.shuiyun.us.ci/x402/v1/rpc/codeContract introspection: bytecode presence, size in bytes, isContract flag.0.002
- new.shuiyun.us.ci/x402/v1/rpc/ensENS resolution on Ethereum mainnet: name -> address, or address -> primary name.0.002
- new.shuiyun.us.ci/x402/v1/rpc/erc20-balanceERC-20 token balance (balanceOf) for any holder, raw + decimals-normalised.0.002
- new.shuiyun.us.ci/x402/v1/rpc/logsERC-20 Transfer logs via eth_getLogs. Filter by token contract, block range, topics.0.002
- new.shuiyun.us.ci/x402/v1/rpc/nonceNext transaction nonce for an address (eth_getTransactionCount, pending).0.002
- new.shuiyun.us.ci/x402/v1/rpc/total-supplytotalSupply() of an ERC-20/ERC-721 contract, raw + decimals-normalised.0.002
- new.shuiyun.us.ci/x402/v1/rpc/txTransaction details by hash (eth_getTransactionByHash) plus receipt status.0.002
