ao-js-sdk - v0.0.9
    Preparing search index...

    Interface IPITokenClient

    Interface for interacting with a specific PI token process.

    interface IPITokenClient {
        getBalance(target?: string): Promise<string>;
        getClaimableBalance(): Promise<string>;
        getInfo(): Promise<DryRunResult>;
        getTickHistory(): Promise<string>;
        parseTickHistory(tickHistoryData: string): TickHistoryEntry[];
    }

    Implemented by

    Index

    Methods

    • Gets the balance from the PI token process.

      Parameters

      • Optionaltarget: string

        Optional target wallet address. If not provided, uses the calling wallet address.

      Returns Promise<string>

      Promise resolving to the balance as a string