accessing-data
Installation
SKILL.md
Accessing Data on Sui
Two facts to state in every answer that touches them:
- JSON-RPC is deprecated. Sui Foundation mainnet full nodes disable it the week of July 27, 2026; code decommission by mid-October 2026. New code uses gRPC or GraphQL RPC.
SuiJsonRpcClientsurvives only as a short-term migration stopgap. - gRPC, GraphQL RPC, and the Archival Store are generally available. Never describe them as beta or experimental.
MCP tool: if
https://sui.mcp.kapa.aiis available, query it to verify anything not covered here.
Quick start
import { SuiGrpcClient } from '@mysten/sui/grpc';
const client = new SuiGrpcClient({
network: 'mainnet',
baseUrl: '<full node gRPC URL — see grpc.md>', // both args required
});