Type Alias TokenAccountBalancePair

TokenAccountBalancePair: {
    address: PublicKey;
    amount: string;
    decimals: number;
    uiAmount: number | null;
    uiAmountString?: string;
}

Token address and balance.

Type declaration

  • address: PublicKey

    Address of the token account

  • amount: string

    Raw amount of tokens as string ignoring decimals

  • decimals: number

    Number of decimals configured for token's mint

  • uiAmount: number | null

    Token amount as float, accounts for decimals

  • OptionaluiAmountString?: string

    Token amount as string, accounts for decimals