SDKs
OpenInfra.sh implements the standard Solana JSON-RPC and Yellowstone gRPC specs — any compatible SDK works out of the box.
Supported libraries
| Language | Package | For |
|---|---|---|
| TypeScript / JS | @solana/web3.js | JSON-RPC, WebSockets |
| TypeScript / JS | @triton-one/yellowstone-grpc | Yellowstone gRPC |
| Python | solana | JSON-RPC, WebSockets |
| Python | yellowstone-grpc | Yellowstone gRPC |
| Go | github.com/gagliardetto/solana-go | JSON-RPC, transaction building |
| Rust | solana-client (crates.io) | JSON-RPC, WebSockets |
| Rust | yellowstone-grpc-proto | Yellowstone gRPC |
TypeScript quick setup
npm install @solana/web3.js @triton-one/yellowstone-grpcimport { Connection, PublicKey } from "@solana/web3.js";import Client from "@triton-one/yellowstone-grpc"; // JSON-RPCconst conn = new Connection("https://rpc.openinfra.sh", "confirmed"); // gRPCconst grpc = new Client("grpc.openinfra.sh:10000", undefined, { "x-token": process.env.OPENINFRA_API_KEY!,});