Expand description
Client utilities for hot/cold account handling.
Re-exports§
pub use account_interface::AccountInterface;pub use account_interface::AccountInterfaceError;pub use account_interface::TokenAccountInterface;pub use account_interface_ext::AccountInterfaceExt;pub use create_accounts_proof::get_create_accounts_proof;pub use create_accounts_proof::CreateAccountsProofError;pub use create_accounts_proof::CreateAccountsProofInput;pub use create_accounts_proof::CreateAccountsProofResult;pub use decompress_mint::DecompressMintError;pub use decompress_mint::MintInterface;pub use decompress_mint::MintState;pub use decompress_mint::DEFAULT_RENT_PAYMENT;pub use decompress_mint::DEFAULT_WRITE_TOP_UP;pub use initialize_config::InitializeRentFreeConfig;pub use light_program_interface::all_hot;pub use light_program_interface::any_cold;pub use light_program_interface::discriminator;pub use light_program_interface::matches_discriminator;pub use light_program_interface::AccountSpec;pub use light_program_interface::AccountToFetch;pub use light_program_interface::ColdContext;pub use light_program_interface::LightProgramInterface;pub use light_program_interface::PdaSpec;pub use load_accounts::create_load_instructions;pub use load_accounts::LoadAccountsError;pub use pack::pack_proof;pub use pack::PackError;pub use pack::PackedProofResult;pub use tx_size::split_by_tx_size;pub use tx_size::InstructionTooLargeError;pub use tx_size::PACKET_DATA_SIZE;
Modules§
- account_
interface - Unified account interfaces for hot/cold account handling.
- account_
interface_ ext - create_
accounts_ proof - Helper for getting validity proofs for creating new rent free accounts. Programs must pass this to light accounts that they initialize.
- decompress_
mint - Mint interface types for hot/cold handling.
- initialize_
config - Helper for initializing config with sensible defaults.
- instructions
- Instruction builders for load/save operations.
- light_
program_ interface - LightProgramInterface trait and supporting types for client-side SDK patterns.
- load_
accounts - Load cold accounts API.
- pack
- Helper for packing validity proofs into remaining accounts.
- tx_size
- Transaction size estimation and instruction batching.
Structs§
- Account
- An Account with data that is stored on chain
- Create
Accounts Proof - Proof data for instruction params when creating new compressed accounts.
Used in the INIT flow - pass directly to instruction data.
All accounts use the same address tree, so only one
address_tree_infois needed. - Light
Config - Global configuration for compressible accounts
- Token
Data - TokenData using standard Solana pubkeys.