Class: Identity
api/entities/Identity.Identity
Represents an Identity in the Polymesh blockchain
Hierarchy
-
Entity
<UniqueIdentifiers
,string
>↳
Identity
Properties
assetPermissions
• assetPermissions: AssetPermissions
Defined in
api/entities/Identity/index.ts:131
authorizations
• authorizations: IdentityAuthorizations
Defined in
api/entities/Identity/index.ts:129
did
• did: string
Identity ID as stored in the blockchain
Defined in
api/entities/Identity/index.ts:126
portfolios
• portfolios: Portfolios
Defined in
api/entities/Identity/index.ts:130
uuid
• uuid: string
Inherited from
Defined in
Methods
areSecondaryAccountsFrozen
▸ areSecondaryAccountsFrozen(): Promise
<boolean
>
Check whether secondary Accounts are frozen
Returns
Promise
<boolean
>
Note
can be subscribed to, if connected to node using a web socket
Defined in
api/entities/Identity/index.ts:681
▸ areSecondaryAccountsFrozen(callback
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback | SubCallback <boolean > |
Returns
Promise
<UnsubCallback
>
Defined in
api/entities/Identity/index.ts:682
checkRoles
▸ checkRoles(roles
): Promise
<CheckRolesResult
>
Check whether this Identity possesses all specified roles
Parameters
Name | Type |
---|---|
roles | Role [] |
Returns
Promise
<CheckRolesResult
>
Defined in
api/entities/Identity/index.ts:466
exists
▸ exists(): Promise
<boolean
>
Determine whether this Identity exists on chain
Returns
Promise
<boolean
>
Note
asset Identities aren't considered to exist for this check
Overrides
Defined in
api/entities/Identity/index.ts:858
getAssetBalance
▸ getAssetBalance(args
): Promise
<BigNumber
>
Retrieve the balance of a particular Asset
Parameters
Name | Type |
---|---|
args | Object |
args.ticker | string |
Returns
Promise
<BigNumber
>
Note
can be subscribed to, if connected to node using a web socket
Defined in
api/entities/Identity/index.ts:207
▸ getAssetBalance(args
, callback
): Promise
<UnsubCallback
>