@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Interface CompressibleAccountInput<T>

    Input for createLoadAccountsParams. Supports both program PDAs and light-token vaults.

    The integrating program is responsible for fetching and parsing their accounts. This helper just packs them for the decompressAccountsIdempotent instruction.

    interface CompressibleAccountInput<T = unknown> {
        address: PublicKey;
        accountType: string;
        tokenVariant?: string;
        info: ParsedAccountInfoInterface<T>;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    address: PublicKey

    Account address

    accountType: string

    Account type key for packing:

    • For PDAs: program-specific type name (e.g., "poolState", "observationState")
    • For light-token vaults: "cTokenData"
    tokenVariant?: string

    Token variant - required when accountType is "cTokenData". Examples: "lpVault", "token0Vault", "token1Vault"

    Parsed account info (from program-specific fetch)