Class: ChildIdentity
Defined in: src/api/entities/Identity/ChildIdentity.ts:13
Represents a child identity
Deprecated
child identities are no longer supported in chain v8
Extends
Properties
assetPermissions
assetPermissions:
AssetPermissions
Defined in: src/api/entities/Identity/index.ts:127
Inherited from
authorizations
authorizations:
IdentityAuthorizations
Defined in: src/api/entities/Identity/index.ts:125
Inherited from
did
did:
string
Defined in: src/api/entities/Identity/index.ts:122
Identity ID as stored in the blockchain
Inherited from
portfolios
portfolios:
Portfolios
Defined in: src/api/entities/Identity/index.ts:126
Inherited from
uuid
uuid:
string
Defined in: src/api/entities/Entity.ts:46
Inherited from
Methods
areSecondaryAccountsFrozen()
Call Signature
areSecondaryAccountsFrozen():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:805
Check whether secondary Accounts are frozen
Returns
Promise<boolean>
Promise that resolves to true if secondary accounts are frozen, false otherwise
Inherited from
Identity.areSecondaryAccountsFrozen
Call Signature
areSecondaryAccountsFrozen(
callback:SubCallback<boolean>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:816
Check whether secondary Accounts are frozen (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| Callback function that receives frozen status updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Identity.areSecondaryAccountsFrozen
checkRoles()
checkRoles(
roles:Role[]):Promise<CheckRolesResult>
Defined in: src/api/entities/Identity/index.ts:545
Check whether this Identity possesses all specified roles
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<CheckRolesResult>
Inherited from
exists()
exists():
Promise<boolean>
Defined in: src/api/entities/Identity/ChildIdentity.ts:80
Determine whether this child Identity exists
Returns
Promise<boolean>
Note
asset Identities aren't considered to exist for this check
Overrides
getAssetBalance()
Call Signature
getAssetBalance(
args:object):Promise<BigNumber>
Defined in: src/api/entities/Identity/index.ts:215
Retrieve the balance of a particular Asset by ticker
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| Asset ticker |
Returns
Promise<BigNumber>
Promise that resolves to the Asset balance
Inherited from
Call Signature
getAssetBalance(
args:object):Promise<BigNumber>
Defined in: src/api/entities/Identity/index.ts:224
Retrieve the balance of a particular Asset by Asset ID
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| Asset identifier |
Returns
Promise<BigNumber>
Promise that resolves to the Asset balance
Inherited from
Call Signature
getAssetBalance(
args:object,callback:SubCallback<BigNumber>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:236
Retrieve the balance of a particular Asset by ticker (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| Asset ticker |
|
| Callback function that receives balance updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Call Signature
getAssetBalance(
args:object,callback:SubCallback<BigNumber>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:251
Retrieve the balance of a particular Asset by Asset ID (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| Asset identifier |
|
| Callback function that receives balance updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
getHeldAssets()
getHeldAssets(
opts?:object):Promise<ResultSet<FungibleAsset>>
Defined in: src/api/entities/Identity/index.ts:440
Retrieve a list of all Assets which were held at one point by this Identity
Parameters
| Parameter | Type |
|---|---|
| { |
| |
|
|
|
|
Returns
Promise<ResultSet<FungibleAsset>>
Note
uses the middlewareV2
Note
supports pagination
Inherited from
getHeldNfts()
Defined in: src/api/entities/Identity/index.ts:487
Retrieve a list of all NftCollections which were held at one point by this Identity
Parameters
| Parameter | Type |
|---|---|
| { |
| |
|
|
|
|
Returns
Note
uses the middlewareV2
Note
supports pagination
Inherited from
getHistoricalInstructions()
getHistoricalInstructions(
filter?:Omit<HistoricalInstructionFilters,"identity">):Promise<ResultSet<HistoricInstruction>>
Defined in: src/api/entities/Identity/index.ts:1050
Retrieve all Instructions that have been associated with this Identity's DID
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<ResultSet<HistoricInstruction>>
Note
uses the middleware V2
Note
supports pagination
Inherited from
Identity.getHistoricalInstructions
getInstructions()
getInstructions():
Promise<GroupedInstructions>
Defined in: src/api/entities/Identity/index.ts:618
Retrieve all Instructions where this Identity is either the custodian of one or more portfolios in the legs or owns one or more accounts in the legs, grouped by status
Returns
Promise<GroupedInstructions>
Inherited from
getInvolvedInstructions()
getInvolvedInstructions():
Promise<GroupedInvolvedInstructions>
Defined in: src/api/entities/Identity/index.ts:731
Retrieve all Instructions where this Identity is a participant (owner/custodian), grouped by the role of the Identity and Instruction status
Returns
Promise<GroupedInvolvedInstructions>
Inherited from
Identity.getInvolvedInstructions
getMultiSigSigners()
getMultiSigSigners():
Promise<MultiSigSigners[]>
Defined in: src/api/entities/Identity/index.ts:1232
Returns the list of MultiSig accounts along with their signatories this identity has responsibility for. The roles possible are:
- Admin: The identity is able to unilaterally modify the MultiSig properties, such as the signers and signatures required for a proposal
- Payer: The identity's primary key will be deducted any POLYX fees the MultiSig may incur
Returns
Promise<MultiSigSigners[]>
Note
this query can be potentially SLOW depending on the number of MultiSigs present on the chain
Inherited from
getOffChainAuthorizationNonce()
getOffChainAuthorizationNonce():
Promise<BigNumber>
Defined in: src/api/entities/Identity/index.ts:1310
Returns the off chain authorization nonce for this Identity
Returns
Promise<BigNumber>
Inherited from
Identity.getOffChainAuthorizationNonce
getParentDid()
getParentDid():
Promise<Identity|null>
Defined in: src/api/entities/Identity/ChildIdentity.ts:34
Returns the parent of this Identity (if any)
Returns
Promise<Identity | null>
Deprecated
getPendingDistributions()
getPendingDistributions():
Promise<DistributionWithDetails[]>
Defined in: src/api/entities/Identity/index.ts:854
Retrieve every Dividend Distribution for which this Identity is eligible and hasn't been paid
Returns
Promise<DistributionWithDetails[]>
Note
uses the middleware
Note
this query can be potentially SLOW depending on which Assets this Identity has held
Inherited from
Identity.getPendingDistributions
getPrimaryAccount()
Call Signature
getPrimaryAccount():
Promise<PermissionedAccount>
Defined in: src/api/entities/Identity/index.ts:366
Retrieve the primary Account associated with the Identity
Returns
Promise<PermissionedAccount>
Promise that resolves to the primary Account information
Inherited from
Call Signature
getPrimaryAccount(
callback:SubCallback<PermissionedAccount>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:377
Retrieve the primary Account associated with the Identity (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| Callback function that receives primary Account updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
getSecondaryAccounts()
Call Signature
getSecondaryAccounts(
paginationOpts?:PaginationOptions):Promise<ResultSet<PermissionedAccount>>
Defined in: src/api/entities/Identity/index.ts:913
Get the list of secondary Accounts related to the Identity
Parameters
| Parameter | Type | Description |
|---|---|---|
| Options for pagination |
Returns
Promise<ResultSet<PermissionedAccount>>
Promise that resolves to a paginated result of secondary accounts
Note
supports pagination
Inherited from
Call Signature
getSecondaryAccounts(
callback:SubCallback<PermissionedAccount[]>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:926
Get the list of secondary Accounts related to the Identity (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| Callback function that receives secondary account updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Call Signature
getSecondaryAccounts(
paginationOpts:PaginationOptions,callback:SubCallback<PermissionedAccount[]>):Promise<UnsubCallback>
Defined in: src/api/entities/Identity/index.ts:941
Get the list of secondary Accounts related to the Identity (with pagination and subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| Options for pagination | |
| Callback function that receives secondary account updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
supports pagination
Note
can be subscribed to, if connected to node using a web socket
Inherited from
getTrustingAssets()
getTrustingAssets():
Promise<FungibleAsset[]>
Defined in: src/api/entities/Identity/index.ts:571
Get the list of Assets for which this Identity is a trusted claim issuer
Returns
Promise<FungibleAsset[]>
Note
uses the middlewareV2
Inherited from
getVenues()
getVenues():
Promise<Venue[]>
Defined in: src/api/entities/Identity/index.ts:590
Retrieve all Venues created by this Identity
Returns
Promise<Venue[]>
Inherited from
hasRole()
hasRole(
role:Role):Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:162
Check whether this Identity possesses the specified Role
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<boolean>
Inherited from
hasValidCdd()
hasValidCdd():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:304
Check whether this Identity has a valid CDD claim
Returns
Promise<boolean>
Deprecated
CDD claims are discontinued from chain v8. If invoked with a v8 chain, this returns true if DID exists
Inherited from
isAssetPreApproved()
isAssetPreApproved(
asset:string|BaseAsset):Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:1171
Returns whether or not this Identity has pre-approved a particular asset
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Promise<boolean>
Inherited from
isCddProvider()
isCddProvider():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:343
Check whether this Identity is a CDD provider
Returns
Promise<boolean>
Inherited from
isChild()
isChild():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:1126
Check whether this Identity is a child Identity
Returns
Promise<boolean>
Inherited from
isEqual()
isEqual(
entity:Entity<unknown,unknown>):boolean
Defined in: src/api/entities/Entity.ts:61
Determine whether this Entity is the same as another one
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
boolean
Inherited from
isGcMember()
isGcMember():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:326
Check whether this Identity is Governance Committee member
Returns
Promise<boolean>
Inherited from
isMandatoryReceiverAffirmationEnabled()
isMandatoryReceiverAffirmationEnabled():
Promise<boolean>
Defined in: src/api/entities/Identity/index.ts:1196
Returns whether or not this Identity has opted in to mandatory receiver affirmation.
When true, the identity must explicitly affirm incoming asset transfer in settlements
unless an asset level or portfolio level exemption applies.
Returns
Promise<boolean>
Inherited from
Identity.isMandatoryReceiverAffirmationEnabled
preApprovedAssets()
preApprovedAssets(
paginationOpts?:PaginationOptions):Promise<ResultSet<Asset>>
Defined in: src/api/entities/Identity/index.ts:1137
Returns a list of all assets this Identity has pre-approved. These assets will not require affirmation when being received in settlements
Parameters
| Parameter | Type |
|---|---|
|
Returns
Inherited from
setMandatoryReceiverAffirmation()
setMandatoryReceiverAffirmation(
args:object,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Identity/index.ts:1219
Enable or disable mandatory receiver affirmation for incoming settlement transfers.
When enabled (ReceiverAffirmationRequirement.Required), the signing identity must explicitly affirm
any incoming asset transfer unless an asset level or portfolio level exemption applies.
When disabled (ReceiverAffirmationRequirement.Automatic), all incoming transfers are auto-affirmed.
Parameters
| Parameter | Type |
|---|---|
| { |
| |
|
Returns
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type ProcedureMethod, which means you can call setMandatoryReceiverAffirmation.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Inherited from
Identity.setMandatoryReceiverAffirmation
toHuman()
toHuman():
string
Defined in: src/api/entities/Identity/index.ts:1039
Return the Identity's DID
Returns
string
Inherited from
unlinkChild()
unlinkChild(
args:UnlinkChildParams,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Identity/index.ts:1121
Unlinks a child identity
Parameters
| Parameter | Type |
|---|---|
| |
|
Returns
Promise<GenericPolymeshTransaction<void, void>>
Throws
if
- the
childis not a child of this identity - the transaction signer is not the primary key of the parent identity
Note
this method is of type ProcedureMethod, which means you can call unlinkChild.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Inherited from
unlinkFromParent()
unlinkFromParent(
opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Identity/ChildIdentity.ts:95
Unlinks this child identity from its parent
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<GenericPolymeshTransaction<void, void>>
Throws
if
- this identity doesn't have a parent
- the transaction signer is not the primary key of the child identity
Deprecated
Note
this method is of type NoArgsProcedureMethod, which means you can call unlinkFromParent.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
generateUuid()
staticgenerateUuid<Identifiers>(identifiers:Identifiers):string
Defined in: src/api/entities/Entity.ts:14
Generate the Entity's UUID from its identifying properties
Type Parameters
| Type Parameter |
|---|
|
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| ‐ |
Returns
string
Inherited from
unserialize()
staticunserialize<Identifiers>(serialized:string):Identifiers
Defined in: src/api/entities/Entity.ts:23
Unserialize a UUID into its Unique Identifiers
Type Parameters
| Type Parameter |
|---|
|
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| UUID to unserialize |
Returns
Identifiers