solami
Solana RPC, gRPC streams, and SWQOS transaction landing in Rust.
[]
= "0.1"
SOLAMI_RPC_TOKEN=your-token
SOLAMI_GRPC_TOKEN=your-grpc-token # optional, falls back to RPC token (solami.fast uses same token for both)
Quick start
let mut client = from_env.build.await?;
// rpc — all solana RpcClient methods work directly
let slot = client.get_slot.await?;
let block = client.rpc.get_block.await?;
// grpc — subscribe to transactions
let = client
.grpc
.subscribe_transactions
.await?;
// resub by sending a new request through the sink
// sink.send(new_request).await?;
SWQOS
Pass your SWQOS keypair to land transactions via QUIC:
let client = from_env
.swqos_key
.build
.await?;
let tx = new_signed_with_payer;
let sig = client.swqos.unwrap.send_transaction.await?;
Custom gRPC filters
use ;
let request = new
.commitment
.transactions
.build;
let = client.grpc.subscribe.await?;
Endpoints
| RPC | https://ams.rpc.solami.fast/sol?api_key={token} |
| WS | wss://ams.rpc.solami.fast/ws/sol?api_key={token} |
| gRPC | https://ams.grpc.solami.fast (x-token) |
| Landing | *.landing.solami.fast:11000 (QUIC) |