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

    Interface IPIDelegateClient

    Interface for interacting with the PI delegate process.

    interface IPIDelegateClient {
        getDelegation(walletAddress?: string): Promise<string>;
        getInfo(): Promise<DryRunResult>;
        parseDelegationInfo(delegationData: string): DelegationInfo;
        setDelegation(options: SetDelegationOptions): Promise<string>;
    }

    Implemented by

    Index

    Methods

    • Gets delegation information for the specified wallet.

      Parameters

      • OptionalwalletAddress: string

        Optional wallet address to get delegations for. If not provided, uses the wallet specified in the configuration.

      Returns Promise<string>

      Promise resolving to delegation information details