api_entities_common_namespaces_Authorizations.Authorizations
Last updated
Last updated
@polymeshassociation/polymesh-sdk / Modules / api/entities/common/namespaces/Authorizations / Authorizations
api/entities/common/namespaces/Authorizations.Authorizations
Handles all Authorization related functionality
Name | Type |
---|---|
▸ 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
Returns
Promise
<AuthorizationRequest
>
Defined in
api/entities/common/namespaces/Authorizations.ts:65
▸ getReceived(opts?
): Promise
<AuthorizationRequest
[]>
Fetch all pending Authorization Requests for which this Signer is the target
Parameters
Returns
Promise
<AuthorizationRequest
[]>
Defined in
Name | Type |
---|---|
Name | Type | Description |
---|---|---|
Parent
extends Signer
args
Object
args.id
BigNumber
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