#client #solana #traits

clone-solana-client-traits

Traits for Solana clients

1 stable release

new 2.2.1 Apr 30, 2025

#735 in Magic Beans

Download history 123/week @ 2025-04-29

123 downloads per month
Used in 9 crates (4 directly)

Apache-2.0

540KB
10K SLoC

Defines traits for blocking (synchronous) and non-blocking (asynchronous) communication with a Solana server as well as a trait that encompasses both.

//! Synchronous implementations are expected to create transactions, sign them, and send them with multiple retries, updating blockhashes and resigning as-needed.

Asynchronous implementations are expected to create transactions, sign them, and send them but without waiting to see if the server accepted it.

Dependencies

~5–10MB
~118K SLoC