Live gas prices and send-now-or-wait gas timing across 7 EVM chains, an agent spend report (what a wallet paid and earned on x402 and MPP), provably fair random numbers, and a Seller Launch Check for x402 sellers (will the scouts, routers and directories that pay new sellers buy your endpoint?), from $0.001 per call. Pay with x402 (USDC on Base) or MPP (USDC.e on Tempo): no API keys, no accounts.
Multi-chain Gas Oracle
0.001/call
Live gas prices and transaction cost in USD across 7 EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche) in one call: next-block base fee, slow/standard/fast priority fees and max-fee suggestions (EIP-1559), gas price in gwei, block utilization, and USD cost of a transfer, ERC-20 transfer and swap (OP-stack L1 data fee included). Read live from public RPC nodes; USD from Chainlink feeds. Use it to pick the cheapest chain or set fees before sending a transaction.
GET https://agent-utils.agent-arena-base.workers.dev/v1/gas
Should you send that transaction now or wait? For Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain and Avalanche in one call: current base fee vs its last-24h hourly profile (24 live samples), spike detection, 1h and 2-4h trend, cheapest hour of the last day (UTC), the USD cost of an ERC-20 transfer now, and a send_now / wait / wait_if_flexible recommendation with the expected saving. Stateless and read live from public RPC nodes, so it works from the first call.
GET https://agent-utils.agent-arena-base.workers.dev/v1/gas/timing
Unbiased random numbers for agents: integers in a range (optionally unique), floats, bytes, UUID v4, dice, coin flips, random choice and shuffle of your list. source=csprng is cryptographically secure; source=drand derives the result from a public drand beacon round (League of Entropy) so anyone can recompute and verify it: provably fair raffles, giveaways, winner picks, tie-breaks and sampling. Pin a future round to commit before the draw.
GET https://agent-utils.agent-arena-base.workers.dev/v1/random
kind — What to draw (default int)
n — How many values (1-100, default 1); for bytes the length (1-1024, default 32)
min — int: lowest value (default 1)
max — int: highest value, inclusive (default 100)
unique — int/choice: 1 = no repeats
sides — dice: sides per die (2-1000, default 6)
items — choice/shuffle: comma-separated list (2-100 items)
source — csprng (default) or drand = publicly verifiable
round — drand only: use this beacon round (pin a future round in advance; default latest)
Agent Spend Report: where did this wallet's money go? (x402 + MPP)
0.010/call
One call, both agent payment rails: every USDC payment on Base (x402) and USDC.e payment on Tempo (MPP) out of and into a wallet over the last 1-24 hours. Returns total spent and received, net, an estimate of paid API calls, payees ranked by spend with labels where known, the 10 latest payments with tx hashes, and top payers. No parameters needed: by default it reports on the wallet that paid for the call (x402 payer, or the MPP credential source); address= for any other wallet. Useful to audit what an agent spent, check that a buyer really paid, or see what a seller earned today.
GET https://agent-utils.agent-arena-base.workers.dev/v1/spend
address — EVM wallet to report on. Default: the wallet that paid for this call (x402 payer, or the MPP credential source); if unknown, an example agent wallet.
hours — Look-back window in hours, 1-24 (default 24)
chains — Comma-separated subset of base, tempo (default both)
Seller Launch Check: will the buyers that pay x402 sellers buy your endpoint?
0.050/call
For x402 and MPP sellers who have no buyers yet. Give the URL of one of your paid endpoints: this reads it the way the 8 buyers that actually pay new sellers do (Settled scout, Agent402 router, AgentCash/x402scan discovery, nohumans.directory, OpenDexter verifier, MPP clients on Tempo, CDP Bazaar, vet402 observatory) and returns, per buyer, ready / partial / blocked with the exact reason, a 0-100 score, prioritized free fixes with copy-paste snippets, and each buyer's dated buying rules (price bands, unproven caps, blind-call behaviour, which directories list free). Read-only: at most 6 requests to your own origin (the URL, /.well-known/x402, /openapi.json, /llms.txt, /mcp), no payment, no other domain. Unreachable targets are not charged. Free summary: GET /v1/launch-check/peek?url=.
GET https://agent-utils.agent-arena-base.workers.dev/v1/launch-check
url — Full https URL of one of your paid endpoints (the exact URL you list). Without it the check runs on a public example endpoint.
How to call
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.PRIVATE_KEY));
const gas = await (await pay("https://agent-utils.agent-arena-base.workers.dev/v1/gas?chains=base,ethereum")).json();
const when = await (await pay("https://agent-utils.agent-arena-base.workers.dev/v1/gas/timing?chains=ethereum")).json(); // send_now | wait | wait_if_flexible
const draw = await (await pay("https://agent-utils.agent-arena-base.workers.dev/v1/random?kind=choice&items=alice,bob,carol&source=drand")).json();
const spent = await (await pay("https://agent-utils.agent-arena-base.workers.dev/v1/spend")).json(); // what this wallet paid and earned in 24h (x402 + MPP)
MPP (Machine Payments Protocol): the same 402 also carries WWW-Authenticate: Payment with method="tempo", intent="charge" (USDC.e on Tempo, pull mode). Any MPP client with a Tempo wallet pays it, for example npx agentcash fetch "https://agent-utils.agent-arena-base.workers.dev/v1/gas?chains=base".
MCP: add https://agent-utils.agent-arena-base.workers.dev/mcp as a remote MCP server (Streamable HTTP). The tools gas_prices, gas_timing, random_numbers, agent_spend_report and seller_launch_check are paid per call with x402 over MCP (USDC on Base) or MPP over MCP (USDC.e on Tempo, https://agent-utils.agent-arena-base.workers.dev/mcp/tempo answers -32042); seller_launch_check_peek and payment_options are free.
Selling on x402 or MPP and nobody buys?GET https://agent-utils.agent-arena-base.workers.dev/v1/launch-check?url=<your paid endpoint> ($0.05) checks it against the 8 buyers that actually pay new sellers (Settled scout, Agent402 router, AgentCash/x402scan, nohumans.directory, OpenDexter, MPP on Tempo, CDP Bazaar, vet402) and returns exact free fixes. Free summary: /v1/launch-check/peek?url=.
See both challenges without paying: curl -i "https://agent-utils.agent-arena-base.workers.dev/v1/gas"
Payment policy
Input is validated before any payment is touched; failed work (for example every RPC node or beacon relay down) is never settled or broadcast. x402 (Base): a result is released only after the USDC settlement is confirmed (by the facilitator, or on-chain on Base); if settlement cannot be confirmed you get HTTP 402 and no result. MPP (Tempo): the server broadcasts your signed USDC.e transfer itself and releases the result when the receipt shows it; if the Tempo RPC gives no definite answer the result is released anyway, marked unconfirmed, so you are never charged without getting it.