api_entities_common_namespaces_Authorizations.Authorizations
@polymeshassociation/polymesh-sdk / Modules / api/entities/common/namespaces/Authorizations / Authorizations
Class: Authorizations<Parent>
api/entities/common/namespaces/Authorizations.Authorizations
Handles all Authorization related functionality
Type parameters
Parent
Hierarchy
Table of contents
Methods
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
args
Object
args.id
BigNumber
Returns
Promise
<AuthorizationRequest
>
Defined in
api/entities/common/namespaces/Authorizations.ts:65
getReceived
▸ getReceived(opts?
): Promise
<AuthorizationRequest
[]>
Fetch all pending Authorization Requests for which this Signer is the target
Parameters
opts?
Object
-
opts.includeExpired?
boolean
whether to include expired authorizations. Defaults to true
opts.type?
fetch only authorizations of this type. Fetches all types if not passed
Returns
Promise
<AuthorizationRequest
[]>
Defined in
Last updated