api.entities.Identity.IdentityAuthorizations - PolymeshAssociation/polymesh-sdk GitHub Wiki

@polymeshassociation/polymesh-sdk / api/entities/Identity/IdentityAuthorizations

api/entities/Identity/IdentityAuthorizations

Classes

IdentityAuthorizations

Defined in: api/entities/Identity/IdentityAuthorizations.ts:12

Handles all Identity Authorization related functionality

Extends

Methods

getHistoricalAuthorizations()

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

Parameters
Parameter Type
opts MiddlewarePaginationOptions & object
Returns

Promise<ResultSet<AuthorizationRequest>>

Note

supports pagination

Note

uses the middlewareV2

Inherited from

Authorizations.getHistoricalAuthorizations

getOne()

getOne(args): Promise<AuthorizationRequest>

Defined in: api/entities/Identity/IdentityAuthorizations.ts:65

Retrieve a single Authorization Request targeting or issued by this Identity by its ID

Parameters
Parameter Type
args { id: BigNumber; }
args.id BigNumber
Returns

Promise<AuthorizationRequest>

Throws

if there is no Authorization Request with the passed ID targeting or issued by this Identity

Note

an expired Authorization Request is still returned. Check isExpired before acting on it

Overrides

Authorizations.getOne

getReceived()

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

Parameters
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
Returns

Promise<AuthorizationRequest[]>

Note

expired Authorization Requests can be told apart with isExpired

Inherited from

Authorizations.getReceived

getSent()

getSent(paginationOpts?): Promise<ResultSet<AuthorizationRequest>>

Defined in: api/entities/Identity/IdentityAuthorizations.ts:20

Fetch all pending authorization requests issued by this Identity

Parameters
Parameter Type
paginationOpts? PaginationOptions
Returns

Promise<ResultSet<AuthorizationRequest>>

Note

supports pagination

Note

expired requests are included, so that a page holds as many entries as it says it does. Use isExpired to skip them