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

    Interface GetBalanceAtRequest

    Request parameters for getting a wallet's historical token balance.

    Provide exactly one of time, datetime, or slot to specify the point in the past. For exact, deterministic results prefer slot, since block times reported by validators can drift by a few seconds.

    interface GetBalanceAtRequest {
        datetime?: string;
        mint: string;
        slot?: number;
        time?: number;
        wallet: string;
    }
    Index

    Properties

    datetime?: string

    Datetime string. Accepted formats: 2025-01-10 (UTC midnight), 2025-01-10 19:20:00, 2025-01-10T19:20:00 (seconds optional), or with an explicit timezone (2025-01-10T19:20:00Z, ...+02:00). Interpreted as UTC unless an explicit timezone is included. Provide exactly one of time, datetime, or slot.

    mint: string

    Token mint address. For native SOL, use the pseudo-mint So11111111111111111111111111111111111111111.

    slot?: number

    Slot number. Returns the balance as of this slot. Exact and deterministic. Provide exactly one of time, datetime, or slot.

    time?: number

    Unix timestamp in seconds. Returns the balance as of this time. Provide exactly one of time, datetime, or slot.

    wallet: string

    Solana wallet address (base58 encoded)