Helius SDK - v2.2.2
    Preparing search index...

    Interface AccountWithOptionalTokenData

    A compressed account with optional token data.

    interface AccountWithOptionalTokenData {
        account: CompressedAccount;
        optionalTokenData?: {
            amount: number;
            delegate?: string;
            mint: string;
            owner: string;
            state: "initialized" | "frozen";
            tlv?: string;
        };
    }
    Index

    Properties

    The compressed account data.

    optionalTokenData?: {
        amount: number;
        delegate?: string;
        mint: string;
        owner: string;
        state: "initialized" | "frozen";
        tlv?: string;
    }

    Token-specific data if this is a compressed token account; absent for non-token accounts.

    Type Declaration

    • amount: number

      Raw token balance (in the token's smallest unit).

    • Optionaldelegate?: string

      Base58-encoded public key of the delegate authority, if one is set.

    • mint: string

      Base58-encoded public key of the token mint.

    • owner: string

      Base58-encoded public key of the token account owner.

    • state: "initialized" | "frozen"

      Account state: initialized for active accounts, frozen for frozen accounts.

    • Optionaltlv?: string

      Base64-encoded token extension data (TLV format); present for Token-2022 accounts with extensions.