Polymesh SDK API Reference
v4.0.0
v4.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Claims
    • Compliance
    • Context
    • Count
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • ProposalStage
    • RoleType
    • ScopeType
    • StoStatus
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • AccountBalance
    • AccountData
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInvestorUniquenessClaimParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • ArrayTransactionArgument
    • CddProviderRole
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • Leg
    • MiddlewareConfig
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SimpleEnumTransactionArgument
    • StoDetails
    • StoTier
    • StoWithDetails
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenDocument
    • TokenHolderOptions
    • TokenHolderProperties
    • TokenIdentifier
    • TokenOwnerRole
    • TokenPiaRole
    • TransferPolyXParams
    • TransferRestrictionInputBase
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • close
  • Protected context
  • freeze
  • id
  • modifyTimes
  • ticker
  • unfreeze
  • uuid
  • Methods
  • details
  • getInvestments
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Sto

PreviousSettlementsNextTickerReservation

Last updated 4 years ago

Was this helpful?

Represents a Security Token Offering in the Polymesh blockchain

Hierarchy

  • ‹UniqueIdentifiers›

    ↳ Sto

Index

Properties

Methods

Properties

close

• close: ProcedureMethod‹void, void›

Close the STO

Protected context

freeze

Freeze the STO

note required role:

  • Security Token Primary Issuance Agent

id

• id: BigNumber

identifier number of the Offering

modifyTimes

Modify the start/end time of the STO

param new start time (optional, will be left the same if not passed)

param new end time (optional, will be left th same if not passed). A null value means the STO doesn't end

throws if:

  • Trying to modify the start time on an STO that already started

  • Trying to modify anything on an STO that already ended

  • Trying to change start or end time to a past date

note required role:

  • Security Token Primary Issuance Agent

ticker

• ticker: string

ticker of the Security Token being offered

unfreeze

Unfreeze the STO

note required role:

  • Security Token Primary Issuance Agent

uuid

• uuid: string

Methods

details

Retrieve the STO's details

note can be subscribed to

Parameters:

Name

Type

callback

getInvestments

Retrieve all investments made on this STO

note supports pagination

note uses the middleware

Parameters:

â–ªDefault value opts: object= {}

Name

Type

Description

size?

undefined | number

page size

start?

undefined | number

page offset

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

Defined in

• context:

Inherited from .

Defined in

• freeze: ProcedureMethod‹void, ›

Defined in

Defined in

• modifyTimes: ProcedureMethod‹, void›

Defined in

Defined in

• unfreeze: ProcedureMethod‹void, ›

Defined in

Inherited from .

Defined in

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

▸ details(callback: ‹›): Promise‹›

Defined in

‹›

Returns: Promise‹›

▸ getInvestments(opts: object): Promise‹‹››

Defined in

Returns: Promise‹‹››

Inherited from .

Defined in

Inherited from .

Defined in

src/api/entities/Sto/index.ts:128
Context
src/api/entities/Entity.ts:48
Sto
src/api/entities/Sto/index.ts:136
src/api/entities/Sto/index.ts:46
src/api/entities/Sto/index.ts:160
src/api/entities/Sto/index.ts:51
Sto
src/api/entities/Sto/index.ts:144
src/api/entities/Entity.ts:46
StoDetails
src/api/entities/Sto/index.ts:84
StoDetails
src/api/entities/Sto/index.ts:85
ResultSet
Investment
src/api/entities/Sto/index.ts:171
ResultSet
Investment
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
close
context
freeze
id
modifyTimes
ticker
unfreeze
uuid
details
getInvestments
generateUuid
unserialize
Entity
Entity
StoDetails
Entity
Entity
StoDetails
ModifyStoTimesParams
SubCallback
UnsubCallback
UnsubCallback
SubCallback
context
uuid
generateUuid
unserialize