Structs§
- Address
Lookup Table Account - The definition of address lookup table accounts.
- Commitment
Config - Duration
- A
Duration
type to represent a span of time, typically used for system timeouts. - FeeConfig
- Global
Config - Global configuration for transaction sending
- Hash
- A hash; the 32-byte output of a hashing algorithm.
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration
. - Instruction
- A directive for a single invocation of a Solana program.
- Jito
TipData - Represents a single entry in the Jito tip data response
- Legacy
Message - A Solana transaction message (legacy).
- Message
- A Solana transaction message (v0).
- Pubkey
- The address of a Solana account.
- RpcConfig
- RPC configuration for connecting to Solana nodes
- RpcSend
Transaction Config - Signature
- Transaction
- An atomically-committed sequence of instructions.
- Versioned
Transaction - An atomic transaction
Enums§
- ChainId
- Commitment
Level - An attribute of a slot. It describes how finalized a block is at some point in time. For example, a slot is said to be at the max level immediately after the cluster recognizes the block at that slot as finalized. When querying the ledger state, use lower levels of commitment to report progress and higher levels to ensure state changes will not be rolled back.
- Compute
Budget Instruction - Compute Budget Instructions
- Jito
FeeStrategy - Jito
Percentile - Percentile
- Priority
FeeStrategy - Versioned
Message - Either a legacy message or a v0 message.
Traits§
- Signer
- The
Signer
trait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransaction
signing interfaces
Functions§
- add_
jito_ tip_ instruction - Calculate and return Jito tip instruction if enabled
- build_
and_ send_ transaction - Build and send a transaction using the global configuration
- build_
transaction - Build a transaction with compute budget and priority fees
- create_
tip_ instruction - Create a Jito tip instruction
- estimate_
compute_ units - Estimate compute units by simulating a transaction
- get_
compute_ budget_ instruction - Calculate and return compute budget instructions for a transaction
- get_
rpc_ client - Helper function to get RPC client from global config
- get_
writable_ accounts - Get writable accounts from a list of instructions
- send_
transaction - Send a transaction with retry logic using the global configuration
- set_
compute_ unit_ margin_ multiplier - Set the compute unit margin multiplier globally
- set_
jito_ block_ engine_ url - Set the Jito block engine URL globally
- set_
jito_ fee_ strategy - Set the Jito tip strategy globally
- set_
priority_ fee_ strategy - Set the priority fee strategy globally
- set_rpc
- Set the RPC configuration globally
- sleep
- Waits until
duration
has elapsed.