Polymesh SDK API Reference
v2.0.0
v2.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Claims
    • Compliance
    • Context
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • Portfolio
    • Portfolios
    • Requirements
    • SecurityToken
    • Settlements
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TrustedClaimIssuer
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AuthorizationStatus
    • AuthorizationType
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • Permission
    • ProposalStage
    • RoleType
    • ScopeType
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferStatus
    • VenueType
  • Interfaces
    • AccountBalance
    • AccountData
    • AddClaimItem
    • AddClaimsParams
    • AddInstructionParams
    • AddTransactionOpts
    • ArrayTransactionArgument
    • CddProviderRole
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAuthorization
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • Leg
    • MiddlewareConfig
    • ModifyInstructionAuthorizationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifyTokenTrustedClaimIssuersParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RegisterIdentityParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCustodianParams
    • SetTokenDocumentsParams
    • SimpleEnumTransactionArgument
    • TickerOwnerRole
    • TickerReservationDetails
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenDocument
    • TokenHolderOptions
    • TokenHolderProperties
    • TokenIdentifier
    • TokenOwnerRole
    • TransferPolyXParams
    • TransferTokenOwnershipParams
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • id
  • uuid
  • Methods
  • authorize
  • details
  • getAuthorizations
  • getLegs
  • reject
  • unauthorize
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Instruction

PreviousIdentityAuthorizationsNextIssuance

Last updated 4 years ago

Was this helpful?

Represents a settlement Instruction to be executed on a certain Venue

Hierarchy

  • ‹UniqueIdentifiers›

    ↳ Instruction

Index

Properties

Methods

Properties

Protected context

id

• id: BigNumber

Identifier number of the venue

uuid

• uuid: string

Methods

authorize

Authorize this instruction

details

Retrieve information specific to this Instruction

getAuthorizations

Retrieve every authorization generated by this Instruction (status and authorizing Identity)

getLegs

Retrieve all legs of this Instruction

reject

Reject this instruction

note reject on SettleOnAuthorization will execute the settlement and it will fail immediately.

note reject on SettleOnBlock behaves just like unauthorize

unauthorize

Unauthorize this instruction

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

• context:

Inherited from .

Defined in

Defined in

Inherited from .

Defined in

▸ authorize(): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

▸ getAuthorizations(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getLegs(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ reject(): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ unauthorize(): Promise‹‹››

Defined in

Returns: Promise‹‹››

Inherited from .

Defined in

Inherited from .

Defined in

Entity
context
id
uuid
authorize
details
getAuthorizations
getLegs
reject
unauthorize
generateUuid
unserialize
Context
Entity
context
src/api/entities/Entity.ts:48
src/api/entities/Instruction/index.ts:44
Entity
uuid
src/api/entities/Entity.ts:46
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:178
TransactionQueue
Instruction
InstructionDetails
src/api/entities/Instruction/index.ts:60
InstructionDetails
InstructionAuthorization
src/api/entities/Instruction/index.ts:103
InstructionAuthorization
Leg
src/api/entities/Instruction/index.ts:132
Leg
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:167
TransactionQueue
Instruction
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:189
TransactionQueue
Instruction
Entity
generateUuid
src/api/entities/Entity.ts:14
Entity
unserialize
src/api/entities/Entity.ts:23