Structs§
- Address
Lookup Table Account - The definition of address lookup table accounts.
- Build
Transaction Config - Commitment
Config - Compute
Config - Duration
- A
Durationtype 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).
- Noop
Signer - 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
- Compute
Unit Limit Strategy - Compute unit limit strategy to apply when building a transaction.
- Jito
FeeStrategy - Jito
Percentile - Percentile
- Priority
FeeStrategy - Versioned
Message - Either a legacy message or a v0 message.
Traits§
- Signer
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning 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_
and_ send_ transaction_ with_ config - Build and send a transaction using the supplied configuration
- build_
transaction - Build a transaction with compute budget and priority fees from the global configuration
- build_
transaction_ with_ config - Build a transaction with compute budget and priority fees from the supplied configuration
- build_
transaction_ with_ config_ obj - Build a transaction with compute budget and priority fees from the supplied configuration
- 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
- send_
transaction_ with_ config - Send a transaction with retry logic using the supplied 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
durationhas elapsed.