Helius SDK - v3.1.0
    Preparing search index...

    Interface GetBalanceAtResponse

    Response from getBalanceAt endpoint.

    balance and balanceRaw are returned as strings to avoid precision loss on large values.

    interface GetBalanceAtResponse {
        asOf: BalanceAtSource | null;
        balance: string;
        balanceRaw: string;
        decimals: number;
        isNative: boolean;
        mint: string;
        requested: {
            datetime: string | null;
            slot: number | null;
            time: number | null;
        };
        wallet: string;
    }
    Index

    Properties

    asOf: BalanceAtSource | null

    The transaction the balance was read from. null when the wallet had no matching transaction at or before the requested point — meaning the balance is genuinely 0 (the wallet had not held the token by then), not an error.

    balance: string

    Human-readable amount as a decimal string (not a number, so large balances don't lose precision). Trailing zeros are trimmed.

    balanceRaw: string

    Exact amount in the smallest unit (lamports for SOL), as a string

    decimals: number

    Token decimals (9 for SOL)

    isNative: boolean

    Whether the result is native SOL

    mint: string

    Echo of the queried mint (the SOL pseudo-mint when native)

    requested: { datetime: string | null; slot: number | null; time: number | null }

    Echo of the query. When datetime is used, time is also populated with the resolved epoch seconds so the UTC interpretation is visible.

    Type Declaration

    • datetime: string | null

      The original datetime string, when datetime was used

    • slot: number | null

      Requested slot, when slot was used

    • time: number | null

      Requested time as epoch seconds (also set when datetime was used)

    wallet: string

    Echo of the queried wallet address