Practical overview
When it fits
Use it when a Rust-based Solana application needs a common integration layer for the listed relayers, or when its developers want the documented regional-selection and latency-diagnostic features.
Who it is for
- Rust developers building Solana applications that submit transactions through relayer services.
- Teams integrating more than one supported relayer behind a shared client interface.
Documented uses
- Initialize a supported relayer client in a Rust application.
- Submit an encoded Solana transaction through a selected provider client.
- Inspect provider health and ping latency and use automatic regional endpoint selection.
Requirements & limits
The project is a public GitHub repository with an MIT license. The README documents adding the crate through Cargo.
- The README lists seven providers: Jito, Nozomi, ZeroSlot, BloxRoute, NextBlock, Blockrazor and Astralane.
- The examples show API-key loading for Nozomi and NextBlock and initialize Jito with
None; credential needs therefore depend on the chosen provider. - The README documents automatic regional endpoint selection and latency diagnostics, but does not describe a cross-provider fallback or selection policy.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add the crate and initialize a relayer client
Set up the documented Rust dependency and initialize a provider client for use in an application.
Before you start
- A Rust project using Cargo.
- Tokio for the asynchronous initialization example.
- The selected provider's API key where required; the README shows keys for Nozomi and NextBlock.
Steps
Add
solana-relayer-adapter-rustto the project with Cargo or declare it inCargo.toml.Declare a provider client in a Tokio
OnceCell.Write an asynchronous initialization function using the provider's
new_autoconstructor; load a.envfile and read an environment variable for providers whose example requires an API key.Call the initialization function from the asynchronous application entry point.
Expected outcome
The application has an initialized provider client available through its `OnceCell`.
Guide limitations
- The README's initialization examples cover selected providers and say to repeat the pattern for others.
- This setup recipe does not cover constructing and sending a transaction.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 October 2026
- Original website title
- vvizardev/solana-relayer-adapter-rust · Official homepage title · retained in its source language

