SecurityToken

Class used to manage all the Security Token functionality

Hierarchy

  • Entity‹UniqueIdentifiers, string›

    ↳ SecurityToken

Index

Properties

Methods

Properties

checkpoints

• checkpoints: Checkpoints

Defined in src/api/entities/SecurityToken/index.ts:109arrow-up-right

compliance

• compliance: Compliance

Defined in src/api/entities/SecurityToken/index.ts:106arrow-up-right

Protected context

• context: Context

Inherited from Entity.context

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

corporateActions

• corporateActions: CorporateActions

Defined in src/api/entities/SecurityToken/index.ts:110arrow-up-right

did

• did: string

Defined in src/api/entities/SecurityToken/index.ts:94arrow-up-right

identity id of the Security Token

documents

• documents: Documents

Defined in src/api/entities/SecurityToken/index.ts:102arrow-up-right

issuance

• issuance: Issuance

Defined in src/api/entities/SecurityToken/index.ts:105arrow-up-right

offerings

• offerings: Offerings

Defined in src/api/entities/SecurityToken/index.ts:108arrow-up-right

permissions

• permissions: Permissions

Defined in src/api/entities/SecurityToken/index.ts:111arrow-up-right

settlements

• settlements: Settlements

Defined in src/api/entities/SecurityToken/index.ts:103arrow-up-right

ticker

• ticker: string

Defined in src/api/entities/SecurityToken/index.ts:99arrow-up-right

ticker of the Security Token

tokenHolders

• tokenHolders: TokenHolders

Defined in src/api/entities/SecurityToken/index.ts:104arrow-up-right

transferRestrictions

• transferRestrictions: TransferRestrictions

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

uuid

• uuid: string

Inherited from Entity.uuid

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

Methods

controllerTransfer

▸ controllerTransfer(args: ControllerTransferParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/SecurityToken/index.ts:498arrow-up-right

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

note this method is of type ProcedureMethod, which means you can call controllerTransfer.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››

createdAt

▸ createdAt(): Promise‹EventIdentifier | null›

Defined in src/api/entities/SecurityToken/index.ts:342arrow-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‹EventIdentifier | null›

currentFundingRound

▸ currentFundingRound(): Promise‹string›

Defined in src/api/entities/SecurityToken/index.ts:272arrow-up-right

Retrieve the Security Token's funding round

note can be subscribed to

Returns: Promise‹string›

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

Defined in src/api/entities/SecurityToken/index.ts:273arrow-up-right

Parameters:

Name

Type

callback

SubCallback‹string›

Returns: Promise‹UnsubCallback›

details

▸ details(): Promise‹SecurityTokenDetails›

Defined in src/api/entities/SecurityToken/index.ts:201arrow-up-right

Retrieve the Security Token's name, total supply, whether it is divisible or not and the Identity of the owner

note can be subscribed to

Returns: Promise‹SecurityTokenDetails›

▸ details(callback: SubCallback‹SecurityTokenDetails›): Promise‹UnsubCallback›

Defined in src/api/entities/SecurityToken/index.ts:202arrow-up-right

Parameters:

Name

Type

callback

Returns: Promise‹UnsubCallback›

freeze

▸ freeze(args: void, opts?: ProcedureOpts): Promise‹TransactionQueue‹SecurityToken››

Defined in src/api/entities/SecurityToken/index.ts:364arrow-up-right

Freezes transfers and minting of the Security Token

note this method is of type ProcedureMethod, which means you can call freeze.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name

Type

args

void

Returns: Promise‹TransactionQueue‹SecurityToken››

getIdentifiers

▸ getIdentifiers(): Promise‹TokenIdentifier[]›

Defined in src/api/entities/SecurityToken/index.ts:306arrow-up-right

Retrieve the Security Token's asset identifiers list

note can be subscribed to

Returns: Promise‹TokenIdentifier[]›

▸ getIdentifiers(callback?: SubCallback‹TokenIdentifier[]›): Promise‹UnsubCallback›

Defined in src/api/entities/SecurityToken/index.ts:307arrow-up-right

Parameters:

Name

Type

callback?

Returns: Promise‹UnsubCallback›

investorCount

▸ investorCount(): Promise‹number›

Defined in src/api/entities/SecurityToken/index.ts:462arrow-up-right

Retrieve the amount of unique investors that hold this Security Token

note this takes into account the Scope ID of Investor Uniqueness Claims. If an investor holds balances of this token 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

note can be subscribed to

Returns: Promise‹number›

▸ investorCount(callback: SubCallback‹number›): Promise‹UnsubCallback›

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

Parameters:

Name

Type

callback

SubCallback‹number›

Returns: Promise‹UnsubCallback›

isEqual

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

Inherited from Entity.isEqual

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

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/SecurityToken/index.ts:383arrow-up-right

Check whether transfers are frozen for the Security Token

note can be subscribed to

Returns: Promise‹boolean›

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

Defined in src/api/entities/SecurityToken/index.ts:384arrow-up-right

Parameters:

Name

Type

callback

SubCallback‹boolean›

Returns: Promise‹UnsubCallback›

modify

▸ modify(args: ModifyTokenParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹SecurityToken››

Defined in src/api/entities/SecurityToken/index.ts:192arrow-up-right

Modify some properties of the Security Token

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

note this method is of type ProcedureMethod, which means you can call modify.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹SecurityToken››

modifyPrimaryIssuanceAgent

▸ modifyPrimaryIssuanceAgent(args: ModifyPrimaryIssuanceAgentParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/SecurityToken/index.ts:423arrow-up-right

Assign a new primary issuance agent for the Security Token

note this may create AuthorizationRequest which have to be accepted by the corresponding Account. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived

deprecated in favor of inviteAgent

note this method is of type ProcedureMethod, which means you can call modifyPrimaryIssuanceAgent.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››

redeem

▸ redeem(args: RedeemTokenParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/SecurityToken/index.ts:449arrow-up-right

Redeem (burn) an amount of this Security Token

note Tokens are removed from the caller's Default Portfolio.

note this method is of type ProcedureMethod, which means you can call redeem.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››

removePrimaryIssuanceAgent

▸ removePrimaryIssuanceAgent(args: void, opts?: ProcedureOpts): Promise‹TransactionQueue‹void››

Defined in src/api/entities/SecurityToken/index.ts:437arrow-up-right

Remove the primary issuance agent of the Security Token

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

deprecated

note this method is of type ProcedureMethod, which means you can call removePrimaryIssuanceAgent.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name

Type

args

void

Returns: Promise‹TransactionQueue‹void››

toJson

â–¸ toJson(): string

Overrides Entity.toJson

Defined in src/api/entities/SecurityToken/index.ts:505arrow-up-right

Return the Token's ticker

Returns: string

transferOwnership

▸ transferOwnership(args: TransferTokenOwnershipParams, opts?: ProcedureOpts): Promise‹TransactionQueue‹SecurityToken››

Defined in src/api/entities/SecurityToken/index.ts:180arrow-up-right

Transfer ownership of the Security Token to another Identity. This generates an authorization request that must be accepted by the destinatary

note this will create Authorization Requests which have to be accepted by the corresponding Accounts and/or Identities. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived

note this method is of type ProcedureMethod, which means you can call transferOwnership.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹SecurityToken››

unfreeze

▸ unfreeze(args: void, opts?: ProcedureOpts): Promise‹TransactionQueue‹SecurityToken››

Defined in src/api/entities/SecurityToken/index.ts:374arrow-up-right

Unfreeze transfers and minting of the Security Token

note this method is of type ProcedureMethod, which means you can call unfreeze.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name

Type

args

void

Returns: Promise‹TransactionQueue‹SecurityToken››

Static generateUuid

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

Inherited from Entity.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 Entity.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?