Interface AuthDescriptorValidationService

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

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

Properties

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

Gets auth descriptor counter for provided account and auth descriptor

Type declaration

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

      • accountId: BufferId

        The account id to get counter for

      • authDescriptorId: BufferId

        The id of the auth descriptor to get counter for

      Returns Promise<null | number>

Returns

auth descriptor counter or null

getBlockHeight: (() => Promise<number>)

Gets block height

Type declaration

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

Returns

block height