Directory / x402-echo-service.onrender.com
Echo service for x402 protocol research. POST a JSON body with a "message" string; the response returns the message, its SHA-256 digest and a server timestamp. Payment is live: $0.001 USDC on Base is verified and settled via the Coinbase CDP facilitator, so callers ARE charged. The response is computed before settlement, and the settlement tx hash is returned in the body and in PAYMENT-RESPONSE.
# 1. Ask the endpoint what it costs (no payment, no wallet needed): curl -i -X POST 'https://x402-echo-service.onrender.com/echo' # -> HTTP/1.1 402 Payment Required # the response carries the price, asset and pay-to address. # 2. Pay and retry with any x402 client: npx x402-fetch -X POST 'https://x402-echo-service.onrender.com/echo'
Endpoint: https://x402-echo-service.onrender.com/echo. Operated by x402-echo-service.onrender.com, not by Animica. Price and availability were correct at the last probe on 2026-09-02 and are set by the operator, who may change them.
Encode or decode base64. POST {"mode":"encode","input":"..."} or {"mode":"decode",...}. Supports standard and url-safe alphabets via {"urlsafe":true}. Decoding …
Read the head of the Base chain, or a specific block. POST {} for the latest block, or {"number":12345678} for one by height. Returns number, hash, unix timesta…
Determine whether an address on Base is a contract or an externally owned account. POST {"address":"0x..."} and receive isContract, the bytecode size in bytes a…
Read an ERC-20 token balance on Base. POST {"address":"0x...","token":"0x..."} and receive the raw balance, the token decimals and the human-readable amount. De…
Read the native ETH balance of an address on Base. POST {"address":"0x..."} and receive the balance in wei and in ether. Live chain state read directly from a n…
Current gas conditions on Base. POST {} and receive the legacy gas price and the EIP-1559 base fee of the latest block, in wei and gwei. Useful for agents decid…
Read the transaction count of an address on Base. POST {"address":"0x..."} with an optional {"pending":true} to include the mempool. Returns the nonce an agent …
Read ERC-20 metadata on Base. POST {"token":"0x..."} and receive the name, symbol, decimals and total supply, with the supply given both raw and decimal-adjuste…
Look up a transaction on Base by hash. POST {"hash":"0x..."} and receive its status, block number, from and to addresses, value, gas used and effective gas pric…
Compute cryptographic digests of a string. POST {"input":"...","algorithms":["sha256"]} and receive one hex digest per requested algorithm. Supports sha256, sha…
Server time in several formats at once. POST {} and receive the current UTC instant as ISO-8601, unix seconds, unix milliseconds and RFC-2822. Useful for agents…
Generate cryptographically random UUIDv4 identifiers. POST {"count":10} and receive that many unique v4 UUIDs, 1 to 100 per call. Uses the platform CSPRNG. No s…