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

    Interface IPiDataService

    Interface for Pi Data Service operations

    interface IPiDataService {
        getAllPiDelegationPreferences(): Observable<
            DelegationPreferencesResponse[],
        >;
        getAllPiDelegationPreferencesWithBalances(): Observable<
            DelegationPreferencesResponseWithBalance[],
        >;
        getCurrentDelegationsForAddress(
            delegatedTo: string,
        ): Observable<SimplifiedDelegationResponse[]>;
        getFLPYieldHistory(): Observable<FLPYieldHistoryEntry[]>;
        getMintReportMessages(): Observable<Partial<FullArweaveTransaction>[]>;
    }

    Implemented by

    Index

    Methods

    • Gets all current delegations with their allocation responses and wallet balances

      Returns Observable<DelegationPreferencesResponseWithBalance[]>

      Observable stream of allocation response messages with balances

    • Gets current delegations for a specific delegated address with simplified response format

      Parameters

      • delegatedTo: string

        The wallet address to get delegations for

      Returns Observable<SimplifiedDelegationResponse[]>

      Observable stream of simplified delegation responses where walletTo matches delegatedTo