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
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
- accountId: BufferId
(accountId: BufferId, authDescriptorId: BufferId): Promise<number | null>
getBlockHeight
getBlockHeight: () => Promise<number>Gets block height
Type Declaration
Returns Promise<number>
block height
(): Promise<number>