Class: ChildIdentity
Defined in: src/api/entities/Identity/ChildIdentity.ts:11
Represents a child identity
Extends
Properties
assetPermissions
assetPermissions:
AssetPermissions
Defined in: src/api/entities/Identity/index.ts:125
Inherited from
authorizations
authorizations:
IdentityAuthorizations
Defined in: src/api/entities/Identity/index.ts:123
Inherited from
did
did:
string
Defined in: src/api/entities/Identity/index.ts:120
Identity ID as stored in the blockchain
Inherited from
portfolios
portfolios:
Portfolios
Defined in: src/api/entities/Identity/index.ts:124
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:753
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:764
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:521
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:66
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:203
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:212
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:224
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:239
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