Asset

Class used to manage all Asset functionality

Hierarchy

  • Entity‹UniqueIdentifiers, string›

    ↳ Asset

Index

Properties

Methods

Properties

assetHolders

• assetHolders: AssetHolders

Defined in src/api/entities/Asset/index.ts:117arrow-up-right


checkpoints

• checkpoints: Checkpoints

Defined in src/api/entities/Asset/index.ts:122arrow-up-right


compliance

• compliance: Compliance

Defined in src/api/entities/Asset/index.ts:119arrow-up-right


Protected context

• context: Context

Inherited from CheckpointSchedule.context

Defined in src/api/entities/Entity.ts:48arrow-up-right


corporateActions

• corporateActions: CorporateActions

Defined in src/api/entities/Asset/index.ts:123arrow-up-right


did

• did: string

Defined in src/api/entities/Asset/index.ts:107arrow-up-right

Identity ID of the Asset (used for Claims)


documents

• documents: Documents

Defined in src/api/entities/Asset/index.ts:115arrow-up-right


issuance

• issuance: Issuance

Defined in src/api/entities/Asset/index.ts:118arrow-up-right


offerings

• offerings: Offerings

Defined in src/api/entities/Asset/index.ts:121arrow-up-right


permissions

• permissions: Permissions

Defined in src/api/entities/Asset/index.ts:124arrow-up-right


settlements

• settlements: Settlements

Defined in src/api/entities/Asset/index.ts:116arrow-up-right


ticker

• ticker: string

Defined in src/api/entities/Asset/index.ts:112arrow-up-right

ticker of the Asset


transferRestrictions

• transferRestrictions: TransferRestrictions

Defined in src/api/entities/Asset/index.ts:120arrow-up-right


uuid

• uuid: string

Inherited from CheckpointSchedule.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

Methods

controllerTransfer

▸ controllerTransfer(args: ControllerTransferParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Asset/index.ts:597arrow-up-right

Force a transfer from a given Portfolio to the caller’s default Portfolio

note this method is of type ProcedureMethodarrow-up-right, which means you can call controllerTransfer.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


createdAt

▸ createdAt(): Promise‹EventIdentifierarrow-up-right | null›

Defined in src/api/entities/Asset/index.ts:395arrow-up-right

Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created

note uses the middleware

note there is a possibility that the data is not ready by the time it is requested. In that case, null is returned

Returns: Promise‹EventIdentifierarrow-up-right | null›


createdAtV2

▸ createdAtV2(): Promise‹EventIdentifierarrow-up-right | null›

Defined in src/api/entities/Asset/index.ts:417arrow-up-right

Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created

note uses the middlewareV2

note there is a possibility that the data is not ready by the time it is requested. In that case, null is returned

Returns: Promise‹EventIdentifierarrow-up-right | null›


currentFundingRound

▸ currentFundingRound(): Promise‹string | null›

Defined in src/api/entities/Asset/index.ts:320arrow-up-right

Retrieve the Asset's funding round

note can be subscribed to

Returns: Promise‹string | null›

▸ currentFundingRound(callback: SubCallback‹string | null›): Promise‹UnsubCallback›

Defined in src/api/entities/Asset/index.ts:321arrow-up-right

Parameters:

Name
Type

callback

SubCallback‹string | null›

Returns: Promise‹UnsubCallback›


details

▸ details(): Promise‹AssetDetailsarrow-up-right›

Defined in src/api/entities/Asset/index.ts:219arrow-up-right

Retrieve the Asset's data

note can be subscribed to

Returns: Promise‹AssetDetailsarrow-up-right›

▸ details(callback: SubCallback‹AssetDetailsarrow-up-right›): Promise‹UnsubCallback›

Defined in src/api/entities/Asset/index.ts:220arrow-up-right

Parameters:

Name
Type

Returns: Promise‹UnsubCallback›


exists

▸ exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/Asset/index.ts:720arrow-up-right

Determine whether this Asset exists on chain

Returns: Promise‹boolean›


freeze

▸ freeze(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/index.ts:444arrow-up-right

Freeze transfers of the Asset

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call freeze.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


getIdentifiers

▸ getIdentifiers(): Promise‹SecurityIdentifierarrow-up-right[]›

Defined in src/api/entities/Asset/index.ts:358arrow-up-right

Retrieve the Asset's identifiers list

note can be subscribed to

Returns: Promise‹SecurityIdentifierarrow-up-right[]›

▸ getIdentifiers(callback?: SubCallback‹SecurityIdentifierarrow-up-right[]›): Promise‹UnsubCallback›

Defined in src/api/entities/Asset/index.ts:359arrow-up-right

Parameters:

Name
Type

Returns: Promise‹UnsubCallback›


getOperationHistory

▸ getOperationHistory(): Promise‹HistoricAgentOperationarrow-up-right[]›

Defined in src/api/entities/Asset/index.ts:608arrow-up-right

Retrieve this Asset's Operation History

note Operations are grouped by the agent Identity who performed them

note uses the middleware

Returns: Promise‹HistoricAgentOperationarrow-up-right[]›


getOperationHistoryV2

▸ getOperationHistoryV2(): Promise‹HistoricAgentOperationarrow-up-right[]›

Defined in src/api/entities/Asset/index.ts:693arrow-up-right

Retrieve this Asset's Operation History

note Operations are grouped by the agent Identity who performed them

note uses the middlewareV2

Returns: Promise‹HistoricAgentOperationarrow-up-right[]›


investorCount

▸ investorCount(): Promise‹BigNumber›

Defined in src/api/entities/Asset/index.ts:541arrow-up-right

Retrieve the amount of unique investors that hold this Asset

note this takes into account the Scope ID of Investor Uniqueness Claims. If an investor holds balances of this Asset in two or more different Identities, but they all have Investor Uniqueness Claims with the same Scope ID, then they will only be counted once for the purposes of this result

Returns: Promise‹BigNumber›


isEqual

▸ isEqual(entity: Entity‹unknown, unknown›): boolean

Inherited from CheckpointSchedule.isEqual

Defined in src/api/entities/Entity.ts:61arrow-up-right

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Entity‹unknown, unknown›

Returns: boolean


isFrozen

▸ isFrozen(): Promise‹boolean›

Defined in src/api/entities/Asset/index.ts:463arrow-up-right

Check whether transfers are frozen for the Asset

note can be subscribed to

Returns: Promise‹boolean›

▸ isFrozen(callback: SubCallback‹boolean›): Promise‹UnsubCallback›

Defined in src/api/entities/Asset/index.ts:464arrow-up-right

Parameters:

Name
Type

callback

SubCallback‹boolean›

Returns: Promise‹UnsubCallback›


modify

▸ modify(args: ModifyAssetParams, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/index.ts:210arrow-up-right

Modify some properties of the Asset

throws if the passed values result in no changes being made to the Asset

note this method is of type ProcedureMethodarrow-up-right, which means you can call modify.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


modifyPrimaryIssuanceAgent

▸ modifyPrimaryIssuanceAgent(args: ModifyPrimaryIssuanceAgentParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Asset/index.ts:504arrow-up-right

Assign a new primary issuance agent for the Asset

note this will create an Authorization Request which has to be accepted by the target Identity. An Accountarrow-up-right or Identityarrow-up-right can fetch its pending Authorization Requests by calling authorizations.getReceived. Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne

deprecated in favor of inviteAgent

note this method is of type ProcedureMethodarrow-up-right, which means you can call modifyPrimaryIssuanceAgent.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


redeem

▸ redeem(args: RedeemTokensParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Asset/index.ts:530arrow-up-right

Redeem (burn) an amount of this Asset's tokens

note tokens are removed from the caller's Default Portfolio

note this method is of type ProcedureMethodarrow-up-right, which means you can call redeem.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


removePrimaryIssuanceAgent

▸ removePrimaryIssuanceAgent(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Asset/index.ts:518arrow-up-right

Remove the primary issuance agent of the Asset

note if primary issuance agent is not set, Asset owner would be used by default

deprecated

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call removePrimaryIssuanceAgent.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


toHuman

â–¸ toHuman(): string

Overrides Entity.toHuman

Defined in src/api/entities/Asset/index.ts:733arrow-up-right

Return the Asset's ticker

Returns: string


transferOwnership

▸ transferOwnership(args: TransferAssetOwnershipParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹AuthorizationRequest››

Defined in src/api/entities/Asset/index.ts:199arrow-up-right

Transfer ownership of the Asset to another Identity. This generates an authorization request that must be accepted by the recipient

note this will create Authorization Request which has to be accepted by the target Identity. An Accountarrow-up-right or Identityarrow-up-right can fetch its pending Authorization Requests by calling authorizations.getReceived. Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne

note this method is of type ProcedureMethodarrow-up-right, which means you can call transferOwnership.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹AuthorizationRequest››


unfreeze

▸ unfreeze(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/index.ts:454arrow-up-right

Unfreeze transfers of the Asset

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call unfreeze.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Inherited from CheckpointSchedule.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

identifiers

Identifiers

Returns: string


Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Inherited from CheckpointSchedule.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?