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

    Interface ICreditNoticeService

    Interface for credit notice service operations

    interface ICreditNoticeService {
        getAllCreditNoticesFromProcessForPeriod(
            params: GetCreditNoticesForPeriodParams,
        ): Promise<CreditNotice[]>;
        getAllCreditNoticesReceivedById(
            params: GetAllCreditNoticesParams,
        ): Promise<CreditNotice[]>;
        getCreditNoticesBetween(
            fromEntityId: string,
            toEntityId: string,
        ): Promise<CreditNotice[]>;
        getCreditNoticesFromProcess(
            recipientId: string,
            tokenId: string,
            amountSent?: string,
        ): Promise<CreditNotice[]>;
    }

    Implemented by

    Index

    Methods

    • Get credit notices from and entity yo an entity

      Parameters

      • fromEntityId: string

        entity that sent the credit notice

      • toEntityId: string

        entity that received the credit notice

      Returns Promise<CreditNotice[]>

      Promise resolving to array of credit notices

    • Get credit notices received by a recipient from a specific process with optional amount

      Parameters

      • recipientId: string

        The ID of the recipient

      • tokenId: string

        The token ID to use as From-Process tag value

      • OptionalamountSent: string

        Optional amount to filter by as Quantity tag

      Returns Promise<CreditNotice[]>

      Promise resolving to array of credit notices