api.entities.common.namespaces.Authorizations - PolymeshAssociation/polymesh-sdk GitHub Wiki
@polymeshassociation/polymesh-sdk / api/entities/common/namespaces/Authorizations
Defined in: api/entities/common/namespaces/Authorizations.ts:44
Handles all Authorization related functionality
-
Namespace<Parent>
| Type Parameter |
|---|
Parent extends Signer
|
getHistoricalAuthorizations(
opts?):Promise<ResultSet<AuthorizationRequest>>
Defined in: api/entities/common/namespaces/Authorizations.ts:171
Fetch all historical Authorization Requests for which this Signer is the target
| Parameter | Type |
|---|---|
opts |
MiddlewarePaginationOptions & object
|
Promise<ResultSet<AuthorizationRequest>>
supports pagination
uses the middlewareV2
getOne(
args):Promise<AuthorizationRequest>
Defined in: api/entities/common/namespaces/Authorizations.ts:95
Retrieve a single Authorization Request targeting this Signer by its ID
| Parameter | Type |
|---|---|
args |
{ id: BigNumber; } |
args.id |
BigNumber |
Promise<AuthorizationRequest>
if there is no Authorization Request with the passed ID targeting this Signer
an expired Authorization Request is still returned — it exists on chain until it is consumed or removed. Check isExpired before acting on it
getReceived(
opts?):Promise<AuthorizationRequest[]>
Defined in: api/entities/common/namespaces/Authorizations.ts:54
Fetch all pending Authorization Requests for which this Signer is the target
| Parameter | Type | Description |
|---|---|---|
opts? |
{ includeExpired?: boolean; type?: AuthorizationType; } |
- |
opts.includeExpired? |
boolean |
whether to include expired authorizations. Defaults to true. The chain applies this filter, against the timestamp of the last block |
opts.type? |
AuthorizationType |
fetch only authorizations of this type. Fetches all types if not passed |
Promise<AuthorizationRequest[]>
expired Authorization Requests can be told apart with isExpired