Zig-based Solana RPC/WebSocket client. Exposes the solana_client module for RPC, PubSub, and transaction helpers built on top of solana-sdk-zig.
- Zig 0.15.2 (matches CI)
- For integration tests: a local Solana validator (e.g.,
surfpool start --no-tuiorsolana-test-validator) reachable athttp://127.0.0.1:8899.
solana_sdkis pulled from the remote tarball at commit18974325397deef61bc07992b69d7cab18180354ofDaviRain-Su/solana-sdk-zig(configured inbuild.zig.zon).
- Format:
zig fmt --check build.zig src integration - Unit tests:
zig build test --summary all - Integration tests (require local validator):
- Start validator:
surfpool start --no-tui(orsolana-test-validator) - Run:
zig build integration-test --summary all
- Start validator:
GitHub Actions workflow (.github/workflows/ci.yml):
- Format Check (Ubuntu):
zig fmt --check build.zig src integration - Unit Tests (Ubuntu & macOS):
zig build test --summary all - RPC Integration Tests (Ubuntu): installs Surfpool, waits for health, then
zig build integration-test --summary all
Add to your Zig project and import:
const client = @import("solana_client");Refer to src/ for available APIs (RPC client, transactions, pubsub, etc.).