Customer documentation for Sodae, built with Mintlify, plus runnable client examples.
| Path | Contents |
|---|---|
docs.json |
Mintlify site configuration and navigation |
*.mdx, yellowstone/, preplay/, rpc/ |
Pages |
examples/rust |
Rust clients: cargo run --example yellowstone / preplay |
examples/typescript |
TypeScript clients: npm run yellowstone / preplay |
examples/go |
Go clients: go run ./yellowstone / ./preplay |
examples/proto |
geyser.proto and solana-storage.proto from yellowstone-grpc (Apache-2.0) |
npm i -g mint
mint devEvery example reads SODAE_TOKEN. The endpoints default to Amsterdam and can be overridden with SODAE_YELLOWSTONE_URL and SODAE_PREPLAY_URL.
The Go code under examples/go/proto is generated:
cd examples/go
protoc -I ../proto \
--go_out=. --go_opt=module=sodae-examples \
--go-grpc_out=. --go-grpc_opt=module=sodae-examples \
--go_opt=Mgeyser.proto=sodae-examples/proto/geyser \
--go_opt=Msolana-storage.proto=sodae-examples/proto/geyser \
--go-grpc_opt=Mgeyser.proto=sodae-examples/proto/geyser \
--go-grpc_opt=Msolana-storage.proto=sodae-examples/proto/geyser \
geyser.proto solana-storage.proto