?

Cut Your Agent's Chain-Data Token Bill in Half

Same JSON-RPC, same endpoint, one request header. Agent RPC returns decoded, compact responses measured at 48.4% fewer input tokens against our live production endpoint. That is the token-weighted aggregate for the run; per-method reductions run from 23% to 69% across the methods that reach tier 2.

No client changesRaw is one re-query awayOpen CC0 spec
By Ankr·2.5B+ daily RPC calls·70+ blockchains·99.9% uptime·SOC 2 Type II

Real Numbers From Live Traffic

Agent RPC is token-optimized JSON-RPC delivery for AI agents, powered by the open TORPC format. The figures below come from a measured run against our live production endpoint. We compare only against raw JSON-RPC, never against other providers.

−48.4%
fewer tokens on tier 2, semantic decode
−35.3%
fewer tokens on tier 1, lossless compression
23
EVM methods transformable today
Tokens per response: raw JSON-RPC vs TORPC tier 2
our measured run · vs raw RPC only
EVM methodRaw tokensTier 2 tokensReduction
eth_getBlockReceipts384,235152,562−60.3%
eth_getBlockByNumber231,032137,781−40.4%
eth_getTransactionReceipt4,5701,624−64.5%
eth_getTransactionByHash1,819564−69.0%
Token totals across 25 randomly selected Ethereum mainnet blocks, measured against the live production endpoint on 2026-07-17, o200k tokenizer over the full HTTP response body. Reproduce with the open benchmark harness.

How Does Agent RPC Work?

No SDK migration, no new endpoint. Agent RPC rides the JSON-RPC envelope you already send. Opt in with one header, or drop in the MCP server.

STEP 01

Opt In With a Header

Add one request header. The response comes back compacted, and an echoed Token-Tier header tells you exactly what you got.

bash · request + response headers
# opt in to tier 2 semantic decode (no API key needed on this endpoint)
curl https://rpc.ankr.com/monad_mainnet \
  -H 'Content-Type: application/json' \
  -H 'Accept-Token-Tier: 2' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["latest",false]}'

# response headers
Token-Tier: 2
Vary: Accept-Token-Tier, Rpc-Compress, Rpc-Decode
STEP 02

Pick Your Tier

Three levels of compaction, from byte-identical raw to fully decoded semantics. Choose per request.

TierWhat it doesTokens
0 · rawUntouched JSON-RPC. Byte-for-byte what the node returns.baseline
1 · mechanicalMechanical compression: strips padding, dedupes, trims zero-hex. Reversible on the fields it keeps.−35.3%
2 · semanticABI-decodes each log into named events and typed args: {contract, event, args}. Lossy by design.−48.4%

Raw is one re-query away: re-issue the same request without the header for the original bytes, and pin a block if you need that reproducible later. Decoding is deterministic: the same input always decodes the same way.

STEP 03

Or Skip HTTP Entirely

Drop the MCP server into your agent runtime and tier negotiation happens for you. Here is the config it uses.

.mcp.json
{
  "mcpServers": {
    "ankr-agent-rpc": {
      "command": "npx",
      "args": ["-y", "@w3tech.io/agent-rpc-mcp"],
      "env": {
        "ANKR_API_KEY": "<your-key>"
      }
    }
  }
}

One Header, Three Ways to Use It

For Builders

Ship Without Burning Budget

Ship an agent that reads the chain without burning your model budget. Free tier, one request header, works with Claude Code, Cursor, LangChain, and any JSON-RPC client. The MCP server is live, and its config block is in step 3 below.

Free tierOne request headerOpen CC0 spec
Get an API Key
For Teams & Platforms

Run Agents at Volume

Run copilots, trading agents, and LLM data pipelines at volume. Token-tier responses cut the input-token line of your model bill; per-key usage telemetry shows finance what you are spending it on.

Volume pricingPer-key usage telemetrySLA & support
Talk to an Expert
For Chains & Ecosystems

Agent-Ready RPC on Day One

Building a chain for the agent economy? Ship agent-ready RPC on day one: we run the Agent RPC stack on your network's endpoints, token-tier compression and MCP server, under your brand, built on the open spec.

White-label stackOpen CC0 specCo-marketing
Partner With Us

Wallet Copilots

"Explain this transaction" in ~250 tokens, not a wall of hex.

Trading & Risk Agents

Read positions across chains cheaply enough to poll in a loop.

Indexing + LLM Pipelines

Semantic pre-decode at ingest keeps downstream prompts small.

Support Bots

Transaction status with reason, no hex archaeology.

Why JSON-RPC Wastes Tokens

JSON-RPC was built for UIs, not LLMs. Hex padding, logsBloom, undecoded topics. A receipt is mostly bytes a model has to reason through before it can answer. TORPC strips and decodes server-side, deterministically.

When your agent runs code-execution sandboxes, raw data may never enter the model context, and TORPC still cuts the tokens that do cross into context, plus the bandwidth and parse time on the way there.

We published the cases where it doesn't help, too. See where it doesn't help →

one eth_getTransactionReceipt, into a model
// before: raw, undecoded
"logsBloom": "0x0020…512 hex chars…000",
"topics": ["0xddf252ad…", "0x0000…7a16"],
"data": "0x0000…1bc16d674ec80000",

// after: TORPC tier 2 (decoded logs)
"contract": "0xa0b8…eb48",
"event": "Transfer",
"args": { "from": "0x2744…a22b",
          "to": "0xfa21…e7fa",
          "value": "30000000000" }

// 696 tokens → 292. The model reads
// decoded logs, not raw bytes.

An Open Spec, Not a Lock-In

TORPC, the open Token Optimized RPC specification, is CC0. The reference implementation is Apache-2.0, which carries an express patent grant. Conformance vectors are public, so an implementation can be checked against the spec rather than against us. The suite is an early scaffold today.

CC0 specApache-2.0 reference codePublic conformance vectorsCC0, submittable as an EIP

The production encoder runs inside Ankr's edge; the spec, decoder, and test vectors are public so any provider or client can implement the format.

Included in Every Paid Plan

Token tiers are included in every paid Ankr plan, and they also work with a free key on any blockchain your free tier can reach. You pay for requests, not for the savings.

See Ankr Pricing

Frequently Asked Questions

Agent RPC is Ankr's token-optimized delivery of blockchain JSON-RPC for AI agents, powered by TORPC (Token Optimized RPC), an open CC0 wire format. An opt-in request header returns the same data decoded and compressed, cutting LLM input tokens by up to 48.4% against our live production endpoint, while keeping the standard JSON-RPC envelope. The raw response stays one re-query away.
No. It's the same JSON-RPC envelope to the same endpoint. You add one request header (or point your MCP client at the server). Remove the header and you're back to raw responses, nothing else changes.
Tier 1 transforms on carried fields are mechanically reversible. Enumerated service fields, such as logsBloom and per-log position bookkeeping, are dropped by policy and come back only by re-issuing the request without the opt-in header. Tier 2 additionally decodes: nothing is invented, but the raw calldata and topics are not reconstructed from the decoded form. Decoding is deterministic, so the same input always produces the same output. If you need the original bytes, re-query without the header, and pin a block when you need that reproducible later: archival availability is not a retention contract.
If your agent processes raw data inside a sandbox and never puts it in the model context, the token win is smaller. TORPC still reduces the tokens that do cross into context, plus bandwidth and parse time.
Twenty-three EVM JSON-RPC methods are transformable today, ten at tier 2 and thirteen at tier 1, on Ankr's EVM endpoints. The published measurements are Ethereum mainnet; other chains run the same rules but have not been measured yet.
A fixed task set is run with identical prompts and models, varying only the RPC tier, and answers are graded against a known-good ground truth. Full method and dataset are published in the benchmark methodology.
Any HTTP client works today via the Accept-Token-Tier header: LangChain, Vercel AI SDK, Coinbase AgentKit, viem, ethers, or plain curl. No SDK is required. The MCP server is live for MCP-compatible clients (Claude Code, Claude Desktop, Cursor, Windsurf). The TypeScript reference decoder is not on npm yet; its source is in the reference repository.

Point Your Agent at Ankr

curl rpc.ankr.com/monad_mainnet -H 'Accept-Token-Tier: 2'
Contact Sales