api_entities_Identity_IdentityAuthorizations.IdentityAuthorizations

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

Class: IdentityAuthorizations

api/entities/Identity/IdentityAuthorizations.IdentityAuthorizations

Handles all Identity Authorization related functionality

Hierarchy

Table of contents

Methods

Methods

getOne

getOne(args): Promise<AuthorizationRequest>

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

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

Parameters

NameType

args

Object

args.id

BigNumber

Returns

Promise<AuthorizationRequest>

Overrides

Authorizations.getOne

Defined in

api/entities/Identity/IdentityAuthorizations.ts:62


getReceived

getReceived(opts?): Promise<AuthorizationRequest[]>

Fetch all pending Authorization Requests for which this Signer is the target

Parameters

NameTypeDescription

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[]>

Inherited from

Authorizations.getReceived

Defined in

api/entities/common/namespaces/Authorizations.ts:29


getSent

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

Fetch all pending authorization requests issued by this Identity

note supports pagination

Parameters

NameType

paginationOpts?

Returns

Promise<ResultSet<AuthorizationRequest>>

Defined in

api/entities/Identity/IdentityAuthorizations.ts:18

Last updated