Docs
chromia.com

Interface

AuthDescriptorValidationService

On this page

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>;
}

Properties

getAuthDescriptorCounter

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

getBlockHeight: () => Promise<number>

Gets block height

Type Declaration

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

      block height