@chromia/ft4 - v2.1.0
    Preparing search index...

    Interface AuthDescriptorValidationService

    Interface used by auth descriptor validation to fetch dynamic parameters from blockchain

    interface AuthDescriptorValidationService {
        getAuthDescriptorCounter: (
            accountId: BufferId,
            authDescriptorId: BufferId,
        ) => Promise<number | null>;
        getBlockHeight: () => Promise<number>;
    }
    Index

    Properties

    getAuthDescriptorCounter: (
        accountId: BufferId,
        authDescriptorId: BufferId,
    ) => Promise<number | null>

    Gets auth descriptor counter for provided account and auth descriptor

    Type Declaration

      • (accountId: BufferId, authDescriptorId: BufferId): Promise<number | null>
      • Parameters

        • accountId: BufferId

          The account id to get counter for

        • authDescriptorId: BufferId

          The id of the auth descriptor to get counter for

        Returns Promise<number | null>

        auth descriptor counter or null

    getBlockHeight: () => Promise<number>

    Gets block height

    Type Declaration

      • (): Promise<number>
      • Returns Promise<number>

        block height