SecurityToken
Last updated
Was this helpful?
Last updated
Was this helpful?
Class used to manage all the Security Token functionality
‹UniqueIdentifiers›
↳ SecurityToken
• compliance: Compliance
Protected
contextForce a transfer from a given Portfolio to the PIA’s default Portfolio
param
portfolio (or portfolio ID) from which tokens will be transferred
param
amount of tokens to transfer
note
required role:
Security Token Primary Issuance Agent
• did: string
identity id of the Security Token
Freezes transfers and minting of the Security Token
note
required role:
Security Token Owner
Modify some properties of the Security Token
param
makes an indivisible token divisible
throws
if the passed values result in no changes being made to the token
note
required role:
Security Token Owner
Assign a new primary issuance agent for the Security Token
param
identity to be set as primary issuance agent
param
date at which the authorization request to modify the primary issuance agent expires (optional, never expires if a date is not provided)
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
note
required role:
Security Token Owner
Redeem (burn) an amount of this Security Token
note
Tokens are removed from the Primary Issuance Agent's Default Portfolio. If the Security Token has no Primary Issuance Agent, funds are removed from the owner's Default Portfolio instead
note
required role:
Security Token Primary Issuance Agent
• removePrimaryIssuanceAgent: ProcedureMethod‹void, void›
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
note
required role:
Security Token Owner
• ticker: string
ticker of the Security Token
Transfer ownership of the Security Token to another Identity. This generates an authorization request that must be accepted by the destinatary
param
date at which the authorization request for transfer expires (optional)
note
required role:
Security Token Owner
Unfreeze transfers and minting of the Security Token
note
required role:
Security Token Owner
• uuid: string
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
▸ currentFundingRound(): Promise‹string›
Retrieve the Security Token's funding round
note
can be subscribed to
Returns: Promise‹string›
Parameters:
Name
Type
callback
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
Parameters:
Name
Type
callback
Retrieve the Security Token's asset identifiers list
note
can be subscribed to
Parameters:
Name
Type
callback?
▸ investorCount(): Promise‹number›
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›
Parameters:
Name
Type
callback
Whether this Entity is the same as another one
Parameters:
Name
Type
entity
Returns: boolean
▸ isFrozen(): Promise‹boolean›
Check whether transfers are frozen for the Security Token
note
can be subscribed to
Returns: Promise‹boolean›
Parameters:
Name
Type
callback
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
â–ª Identifiers: object
Parameters:
Name
Type
Description
identifiers
Identifiers
Returns: string
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
â–ª Identifiers: object
Parameters:
Name
Type
Description
serialized
string
UUID to unserialize
Returns: Identifiers
• checkpoints:
Defined in
Defined in
• context:
Inherited from .
Defined in
• controllerTransfer: ProcedureMethod‹, void›
Defined in
• corporateActions:
Defined in
Defined in
• documents:
Defined in
• freeze: ProcedureMethod‹void, ›
Defined in
• issuance:
Defined in
• modify: ProcedureMethod‹, ›
Defined in
• modifyPrimaryIssuanceAgent: ProcedureMethod‹, void›
Defined in
• offerings:
Defined in
• redeem: ProcedureMethod‹, void›
Defined in
Defined in
• settlements:
Defined in
Defined in
• tokenHolders:
Defined in
• transferOwnership: ProcedureMethod‹, ›
Defined in
note
this will create which have to be accepted by the corresponding and/or . An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived
• transferRestrictions:
Defined in
• unfreeze: ProcedureMethod‹void, ›
Defined in
Inherited from .
Defined in
▸ createdAt(): Promise‹ | null›
Defined in
Returns: Promise‹ | null›
Defined in
â–¸ currentFundingRound(callback
: ‹string›): Promise‹›
Defined in
‹string›
Returns: Promise‹›
▸ details(): Promise‹›
Defined in
Returns: Promise‹›
â–¸ details(callback
: ‹›): Promise‹›
Defined in
‹›
Returns: Promise‹›
▸ getIdentifiers(): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getIdentifiers(callback?
: ‹[]›): Promise‹›
Defined in
‹[]›
Returns: Promise‹›
Defined in
â–¸ investorCount(callback
: ‹number›): Promise‹›
Defined in
‹number›
Returns: Promise‹›
â–¸ isEqual(entity
: ‹object›): boolean
Inherited from .
Defined in
‹object›
Defined in
â–¸ isFrozen(callback
: ‹boolean›): Promise‹›
Defined in
‹boolean›
Returns: Promise‹›
Inherited from .
Defined in
Inherited from .
Defined in