Docs
How Onrecord works.
Everything the gateway does, every rule it applies and every limit it has.
Quickstart
Add https://onrecordapp.xyz/mcp as a remote MCP server in your client. No key and no sign-up. Then ask your AI, for example: check this approval before I sign it or what is the USDC balance of 0x… on Base. Guides per client are on Developers.
Chains: hyperevm (999), elysium (99901), ethereum (1), base (8453), arbitrum (42161), robinhood (4663, Robinhood Chain). Amounts are decimal strings in native units, like "0.25".
The flow
1. Your AI calls prepare_tx or risk_check. 2. Onrecord runs the call with eth_call and eth_estimateGas on the latest block, and a call trace with logs where the RPC serves debug_traceCall. 3. The calldata is decoded and explained in one sentence, without AI. 4. The risk layers run and the worst level wins. 5. A record is written. 6. If the verdict is not block, a signing link is returned. 7. You open it, see a fresh simulation, and sign in your own wallet. 8. The page reports the transaction hash back and the record shows whether it matches what was prepared.
MCP tools
| Tool | What it does |
|---|---|
get_chains | Chains with live block height and gas. |
get_balance | Native balance. |
get_tokens | Native plus ERC-20 balances: common tokens of the chain and any addresses you pass. |
get_tx | Transaction, receipt status and a plain explanation. |
get_safe | Owners, threshold, nonce, version, balance of a Safe. |
simulate_tx | Revert reason, gas, fee, asset changes, net change for the sender. |
explain_tx | Decoded call: known ABIs first, then the verified ABI on Sourcify, then a public signature database. |
risk_check | Simulation plus every risk layer. Verdict pass, warn or block. Writes a record. |
prepare_tx | Risk check plus a signing link valid for 30 minutes. |
agent_wallet_plan | Safe owned only by you plus one transaction that turns on the agent's on-chain allowance; later the same call changes it, or with revoke removes the agent. |
get_allowance | Module state of a Safe: agents, limit, spent, left, next reset. |
allowance_transfer | For the agent: a transfer within its allowance, checked and simulated; blocked above it. |
crosscheck_chains | Reads every chain from two independent RPCs and an explorer and reports whether block hashes and contract code match. |
batch_risk_check | Paid per call (x402). Up to 20 risk checks in one call. Listed only when paid calls are on. |
get_record, about | One record; service facts and limits. |
Transactions can be given as raw to, value, data, or as token + amount + to (with action: "approve" for an approval). Without from the simulation uses a funded simulation account.
Risk rules
Mandatory layers are the simulation, the target code and the scam list. If one of them cannot finish, the verdict is block. Fail closed.
| Rule | Level | When |
|---|---|---|
check_incomplete | block | A mandatory layer could not run. |
known_bad_address | block | Target, recipient or spender is on the public ScamSniffer address list. |
approval_to_eoa | block | An approval or approval-for-all goes to an address without code. |
token_to_itself | block | Tokens are sent to the token contract. |
transfer_blocked | block | A token you would receive or approve cannot be transferred in simulation (balance placed by state override, then transfer). |
allowance_*, module_not_enabled, agent_is_owner | block | Agent transfer above the allowance left, without an allowance, on a Safe without the module, or by an agent that is also an owner. |
would_revert | warn | The call reverts in simulation. |
unlimited_approval, approval_for_all | warn | Unlimited allowance or a whole collection. |
unverified_contract | warn | No verified source on Sourcify (or the explorer on Elysium and Ethereum). |
upgradeable_proxy | warn | EIP-1967 implementation or beacon slot is set. |
owner_privileges | warn | The contract has an owner and its code contains mint, pause, blacklist or fee setters. |
fresh_contract | warn | No code at the block from 72 hours ago. |
transfer_tax | warn | The receiver gets at least 1% less than sent. |
most_of_balance | warn | 90% or more of the sender's native balance. |
burn_recipient, data_to_eoa | warn | Burn address recipient; calldata to an address without code. |
verification_unknown, age_unknown | warn | An optional lookup failed. |
Signing links
A link is /sign/<id>.<expiry>.<mac>. The mac is an HMAC-SHA256 over the id, the expiry, the chain and the hash of the exact transaction, so a changed amount or target breaks the link. Links expire after 30 minutes. The page re-simulates before you sign and uses your browser wallet (EIP-1193). After sending, it attaches the hash and the gateway checks to, value and data on chain: matched or mismatch.
Agent wallets
Safe v1.4.1 from the official factory 0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67 (singleton SafeL2, Safe on Ethereum), with you as the only owner. A second transaction from your wallet runs one batch through MultiSendCallOnly 0x9641d764fc13c8B624c04430C7356C1C7C8102e2: enableModule for the canonical Safe AllowanceModule v0.1.1 0xAA46724893dedD72658219405185Fb0Fc91e091C, addDelegate(agent) and setAllowance(agent, token, amount, resetMinutes). Same addresses and bytecode on all five chains. The agent is not an owner: its only power is executeAllowanceTransfer, a plain transfer from the Safe up to the allowance left, which the module checks on chain. Swaps, approvals and any other call need your signature. You choose the token, the amount and the period. To change it, call agent_wallet_plan again with safe and the new values: one signature, and the new allowance replaces the old one. To stop the agent, call it with safe and revoke: true: one signature runs removeDelegate(agent, true) and every allowance is gone.
Record and digests
Record hash = sha256 of the canonical JSON (sorted keys, no spaces) of {v, id, ts, chain, kind, target, verdict, rules (sorted), payload_hash}. The payload hash is sha256 of the canonical {chain, from, to, value, data}. Each UTC hour: root = sha256(hashes ordered by time then id, joined by "\n"), digest = sha256(prev + ":" + hour + ":" + count + ":" + root), where hour is the unix time divided by 3600 and the first prev is 64 zeros. Hashes and digests are kept off-chain and published at /api/v1/digests; because each digest includes the previous one, editing any past record changes every later digest. Recompute any of it on Verify.
Cross-check
Every chain is read from two RPC providers on different domains, and from a public explorer where one answers without a key. For a block about five minutes old, all block hashes must be equal; the Safe factory code must hash the same on both RPCs; the two heads must be close. The result is on Verify and at /api/v1/crosscheck.
Paid calls (x402)
Free calls stay free. When paid calls are on, batch_risk_check and any call above the rate limit answer 402 with {"x402Version":1,"accepts":[…]}: network, asset, price per call and payTo. Send at least that amount to payTo (native, or the project token where listed, which can carry a discount), then repeat the request with X-PAYMENT: base64({"x402Version":1,"scheme":"onchain-tx","network":"…","payload":{"txHash":"0x…"}}). One transaction buys floor(amount / price) calls; each transaction can be used only for its calls. The answer carries X-PAYMENT-RESPONSE with the calls left. Current terms: /api/v1/x402.
Token
Holding the token opens the holder tier (300 requests a minute) after a gasless signature on Token. Paying for calls in the token can be priced lower than paying in HYPE. Transfers to the zero or dead address are listed on Burns. Creator fees are not shared with holders.
HTTP API
Base https://onrecordapp.xyz/api/v1. JSON in, JSON out, CORS open. Full spec: openapi.json.
| Endpoint | Purpose |
|---|---|
GET /health, /config, /chains | Status, live features, chains. |
GET /balance, /tokens, /tx, /safe | Reads, with chain and address, hash or safe. |
POST /simulate, /explain, /risk_check, /prepare | Transaction tools. |
POST /agent_wallet_plan, GET /allowance, POST /allowance_transfer | Agent wallets. |
GET /records, /records/{id}, /verify/{id}, /digests, /stats | The public record. |
GET /sign/{token}, POST /records/{id}/submitted | Signing links. |
POST /tier | Gasless holder check. |
GET /crosscheck, /burns, /x402 | Cross-check, burns, paid-call terms. |
POST /batch_risk_check | Paid per call: up to 20 risk checks. |
For AI agents
Everything an agent needs is machine-readable: the MCP endpoint https://onrecordapp.xyz/mcp (streamable HTTP, no key), llms.txt with tools, rules and endpoints in plain text, and openapi.json. Connect guides for Claude, ChatGPT, Cursor, VS Code and Grok are on Developers.
Links
X: @onrecordapp. Telegram: @onrecordapp_bot. Code: github.com/onrecordapp/onrecord.
Limits
- 60 requests a minute per IP across MCP and API; 300 for holders. Above that, paid calls when they are on.
- Simulation is a snapshot. State can change before you sign.
- No call traces on Elysium yet, so asset changes there show what the request sends.
- Fresh-contract and token-transfer checks depend on archive and override support of public RPCs; when they cannot run you see an
_unknownwarning. - No contract audit and no sanctions screening.
- Not live: swaps, private sends, copy trading, an on-chain cap module, sharing fees with holders.
/api/v1/configlists exactly what is live.