Blockchain Data for Agents

Blockchain data is one of the categories an agent can reach through Pocket Network: balances, blocks, transactions, logs, contract calls, staking, and governance state across dozens of chains. There are three ways to give an agent access, depending on how the agent is built.

If your agent…Use
Runs in Claude DesktopBlockchainQuery, a read-only MCP server with no key and no cost
Is your own code or runs in an agent frameworkThe public RPC endpoints, called as ordinary HTTP tools
Already pays for other services on the Agentic PortalThe portal’s blockchain services, through the same integration

BlockchainQuery for Claude

BlockchainQuery is Pocket’s MCP server for blockchain data. It gives Claude read-only query tools across six protocol families (EVM, Solana, Cosmos SDK, Sui, Near, and Radix) and routes every query through Pocket’s public RPC at api.pocket.network. It needs no API key, no account, and no payment.

Its tools cover:

  • Discovery: list the supported chains and describe one.
  • EVM: balances, blocks, transactions, receipts, logs, gas estimates, token info, and contract calls.
  • Solana, Cosmos, Sui, Near, and Radix: balances, accounts or objects, blocks, and transactions, plus staking, validators, and governance on Cosmos chains.
  • Cross-chain: domain resolution, balance comparison across chains, and unit conversion.

To install it, download BlockchainQuery.mcpb from the repository, open it with Claude Desktop, and click Install. Claude can then answer questions about live on-chain state directly. The BlockchainQuery page has the full tool list.

Public RPC from Agent Frameworks

The Foundation’s public RPC endpoints are free and need no key. Every supported chain is at https://{chain-slug}.api.pocket.network; the slugs are on Supported Chains. Because they are standard JSON-RPC, any framework that can define a tool can use them, with no Pocket-specific library.

A LangChain tool with web3.py:

python
from langchain.tools import Tool
from web3 import Web3

w3 = Web3(Web3.HTTPProvider("https://eth.api.pocket.network"))

def get_balance(address: str) -> str:
    balance = w3.eth.get_balance(address)
    return str(w3.from_wei(balance, "ether")) + " ETH"

tool = Tool(name="get_eth_balance", func=get_balance, description="Get the ETH balance of an address")

CrewAI, LangGraph, and other frameworks work the same way: define a tool that sends the JSON-RPC request. More drop-in snippets are on Integration Examples.

Info

The public endpoints are rate-limited per IP. An agent that needs sustained, high-volume access should stake its own Application or run a gateway with PATH.

Blockchain Services on the Agentic Portal

The Agentic Portal lists blockchain services alongside its other categories. An agent that already calls portal services can call these the same way, paying per call with x402 or MPP and receiving the chain’s JSON-RPC response inside the portal’s envelope. See Agent Integration.