Expand description
Drift SDK
Re-exports§
pub use crate::grpc::GrpcSubscribeOpts;
pub use crate::types::Context;
pub use crate::wallet::Wallet;
Modules§
- account_
map - Hybrid solana account map backed by Ws or RPC polling
- async_
utils - utils for async functions
- auction_
subscriber - blockhash_
subscriber - constants
- drift_
idl - Auto-generated IDL types, manual edits do not persist (see
crates/drift-idl-gen
) - event_
subscriber - ffi
- FFI shims Defines wrapper types for ergonomic access to drift-program logic
- grpc
- Drift gRPC module
- jit_
client - JIT proxy client
- marketmap
- math
- memcmp
- oraclemap
- polled_
account_ subscriber - priority_
fee_ subscriber - slot_
subscriber - swift_
order_ subscriber - types
- usermap
- utils
- SDK utility functions
- wallet
- websocket_
account_ subscriber - websocket_
program_ account_ subscriber
Structs§
- Address
Lookup Table Account - The definition of address lookup table accounts.
- Drift
Client - DriftClient
- Drift
Client Backend - Provides the heavy-lifting and network facing features of the SDK It is intended to be a singleton
- Pubkey
- The address of a Solana account.
- Pubsub
Client - A client for subscribing to messages from the RPC server.
- RpcClient
- A client of a remote Solana node.
- Transaction
Builder - Composable Tx builder for Drift program
Functions§
- build_
accounts - Builds a set of required accounts from a user’s open positions and additional given accounts