Class: Authorizations<Parent>
api/entities/common/namespaces/Authorizations.Authorizations
Handles all Authorization related functionality
Type parameters
Name | Type |
---|---|
Parent | extends Signer |
Hierarchy
Namespace
<Parent
>↳
Authorizations
Methods
getOne
▸ getOne(args
): Promise
<AuthorizationRequest
>
Retrieve a single Authorization Request targeting this Signer by its ID
Throws
if there is no Authorization Request with the passed ID targeting this Signer
Parameters
Name | Type |
---|---|
args | Object |
args.id | BigNumber |
Returns
Promise
<AuthorizationRequest
>
getReceived
▸ getReceived(opts?
): Promise
<AuthorizationRequest
[]>
Fetch all pending Authorization Requests for which this Signer is the target
Parameters
Name | Type | Description |
---|---|---|
opts? | Object | - |
opts.includeExpired? | boolean | whether to include expired authorizations. Defaults to true |
opts.type? | AuthorizationType | fetch only authorizations of this type. Fetches all types if not passed |
Returns
Promise
<AuthorizationRequest
[]>