Use when an agent needs unbiased random integers, e.g
api.zato.org/api/random
Use when an agent needs unbiased random integers, e.g. picking a winner, sampling or test data: returns 1 to 1000 integers uniformly drawn from [min, max] with crypto.randomInt (cryptographically secure). Nothing is stored or logged.
GET
https://api.zato.org/api/randomUptime100% 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.zato.org/api/random?count=5&max=100&min=1");
console.log(await res.json());Example input
{
"count": "5",
"max": "100",
"min": "1"
}More from api.zato.orgProvider status
- api.zato.org/api/chain/base-wallet-reportUse when an x402 agent on Base needs to check a counterparty wallet before paying it, or wants a one-call overview of any Base wallet: ETH balance, nonzero balances of top Base tokens (USDC, USDbC, WETH, DAI, cbETH, cbBTC, AERO), nonce, contract flag and recent ERC-20 transfers of those tokens (last ~900 blocks, about 30 min). One GET replaces four lookups; the response also lists related endpoint0.003
- api.zato.org/api/chain/callUse when an agent needs to read a contract value that no dedicated route covers: runs eth_call with your calldata against the latest block on Ethereum (default) or Base and returns the raw result plus simple decodings (uint256, address, string). Read-only: nothing is signed or sent.0.002
- api.zato.org/api/chain/chain-idUse when you need the EVM chain ID of the network this API reads from (Ethereum mainnet), e.g. to check a wallet or a signing setup.0.001
- api.zato.org/api/chain/estimate-gasUse when an agent wants to know how much gas a specific contract call or transfer will cost before sending it: runs eth_estimateGas for from/to/data/value on Ethereum (default) or Base and converts the result to ETH at the current base fee plus median priority fee. Read-only, nothing is sent.0.002
- api.zato.org/api/chain/eventsQuery Ethereum contract event logs via eth_getLogs - filter by contract, optional topic0 (event signature hash) and block range (max 800 blocks; default: last 100 blocks). Cheaper drop-in: same path, params and response.0.002
- api.zato.org/api/chain/name-reportUse when an agent is given an ENS name or Basename and must know what stands behind it before paying: resolved address, expiry date and days left, resolver, which records are set, whether the reverse name matches, plus a short wallet summary (balance, tokens, transactions). Parts that fail are marked.0.003
- api.zato.org/api/chain/network-infoUse when you need the current Ethereum network status: chain ID, latest block number, gas price and base fee.0.001
- api.zato.org/api/chain/nonce/:addressUse when you need the next transaction nonce for any Ethereum wallet, via eth_getTransactionCount.0.001
- api.zato.org/api/chain/pendingUse when an agent wants to know how busy the chain is right now before sending or timing a transaction: the pending block as seen by public RPC nodes (transaction count, gas used/limit, base fee) next to the latest block and its age, on Ethereum (default) or Base. Node views of pending state can differ.0.002
- api.zato.org/api/chain/storageUse when an agent needs a raw storage value of a contract - e.g. a proxy slot, an owner or a packed variable: eth_getStorageAt for a slot (decimal or hex) at the latest block on Ethereum (default) or Base, plus the value as uint256 and as address.0.001
- api.zato.org/api/chain/token-reportUse when an agent must decide about an unknown ERC-20 (accept, hold or list it): one call combines token-risk facts (proxy, owner, mint/pause/blacklist functions), contract provenance where available (verified, creator), an OFAC check of the owner and on which of 12 chains the same address has code. Facts only, no score.0.006
- api.zato.org/api/chain/wallet-dossierUse when an agent wants the full picture of a wallet before paying or trusting it: wallet report on one chain (balances, tokens, nonce, recent transfers), OFAC sanctions check, pay-to facts, wallet age and presence on 12 EVM chains. Parts that fail are marked instead of failing the call. Facts only, no score. Accepts ENS/Basenames.0.005
