Decode blockchain transaction receipts for AI agents
Agents receive compact, human-readable transaction data with decoded logs and events, significantly reducing token usage and improving analysis speed.
How it works
The agent connects to the Ankr Agent RPC MCP server to query blockchain data. It sends standard JSON-RPC requests (like eth_getTransactionReceipt) with the appropriate header to trigger server-side decoding. The server returns a TORPC-formatted response with hex values converted to decimals and logs ABI-decoded into named events. This allows the agent to process transaction details without parsing raw hex strings, saving context window space.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Query the latest transaction receipt for transaction hash 0x4d41...cbc0 using the ankr-agent-rpc-mcp server. Ensure the response is decoded to show event names and arguments rather than raw hex logs.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Agent RPC returns decoded, compact responses measured at 48.4% fewer input tokens against our live production endpoint.Agent RPC: Token-Optimized Blockchain RPC for AI Agents | Ankr