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
↳
IdentityAuthorizations
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
Name | Type |
---|---|
|
|
|
|
Returns
Promise
<AuthorizationRequest
>
Overrides
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
Name | Type | Description |
---|---|---|
|
| - |
|
| whether to include expired authorizations. Defaults to true |
| fetch only authorizations of this type. Fetches all types if not passed |
Returns
Promise
<AuthorizationRequest
[]>
Inherited from
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
Name | Type |
---|---|
|
Returns
Promise
<ResultSet
<AuthorizationRequest
>>
Defined in
Last updated