Polymesh SDK API Reference
v14.1.0
v14.1.0
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • id
  • uuid
  • Methods
  • affirm
  • details
  • exists
  • getAffirmations
  • getLegs
  • getStatus
  • isEqual
  • isExecuted
  • isPending
  • reject
  • reschedule
  • toJson
  • withdraw
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Instruction

PreviousIdentityAuthorizationsNextIssuance

Last updated 2 years ago

Was this helpful?

Represents a settlement Instruction to be executed on a certain Venue

Hierarchy

  • ‹UniqueIdentifiers, string›

    ↳ Instruction

Index

Properties

Methods

Properties

Protected context

• context: Context


id

• id: BigNumber

Identifier number of the venue


uuid

• uuid: string

Methods

affirm

Affirm this instruction (authorize)

Parameters:

Name
Type

opts?


details

Retrieve information specific to this Instruction


exists

▸ exists(): Promise‹boolean›

Determine whether this Instruction exists on chain (or existed and was pruned)

Returns: Promise‹boolean›


getAffirmations

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

note supports pagination

Parameters:

Name
Type

paginationOpts?


getLegs

Retrieve all legs of this Instruction

note supports pagination

Parameters:

Name
Type

paginationOpts?


getStatus

Retrieve current status of this Instruction

note uses the middleware


isEqual

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Returns: boolean


isExecuted

▸ isExecuted(): Promise‹boolean›

Retrieve whether the Instruction has already been executed and pruned from the chain.

Returns: Promise‹boolean›


isPending

▸ isPending(): Promise‹boolean›

Retrieve whether the Instruction is still pending on chain

Returns: Promise‹boolean›


reject

Reject this instruction

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

note reject on SettleOnBlock behaves just like unauthorize

Parameters:

Name
Type

opts?


reschedule

Reschedules a failed Instruction to be tried again

throws if the Instruction status is not InstructionStatus.Failed

Parameters:

Name
Type

opts?


toJson

â–¸ toJson(): string

Return the Instruction's ID

Returns: string


withdraw

Withdraw affirmation from this instruction (unauthorize)

Parameters:

Name
Type

opts?


Static generateUuid

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

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

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

Inherited from .

Defined in

Defined in

Inherited from .

Defined in

▸ affirm(opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it

Returns: Promise‹‹››

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

Overrides .

Defined in

▸ getAffirmations(paginationOpts?: ): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ getLegs(paginationOpts?: ): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ getStatus(): Promise‹›

Defined in

Returns: Promise‹›

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

Inherited from .

Defined in

‹unknown, unknown›

Defined in

Defined in

▸ reject(opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it

Returns: Promise‹‹››

▸ reschedule(opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it

Returns: Promise‹‹››

Overrides .

Defined in

▸ withdraw(opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it

Returns: Promise‹‹››

Inherited from .

Defined in

Inherited from .

Defined in

Entity
context
id
uuid
affirm
details
exists
getAffirmations
getLegs
getStatus
isEqual
isExecuted
isPending
reject
reschedule
toJson
withdraw
generateUuid
unserialize
CheckpointSchedule
context
src/api/entities/Entity.ts:48
src/api/entities/Instruction/index.ts:77
CheckpointSchedule
uuid
src/api/entities/Entity.ts:46
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:406
NoArgsProcedureMethod
affirm.checkAuthorization
TransactionQueue
Instruction
InstructionDetails
src/api/entities/Instruction/index.ts:198
InstructionDetails
Entity
exists
src/api/entities/Instruction/index.ts:180
PaginationOptions
ResultSet
InstructionAffirmation
src/api/entities/Instruction/index.ts:257
ResultSet
InstructionAffirmation
PaginationOptions
ResultSet
Leg
src/api/entities/Instruction/index.ts:303
ResultSet
Leg
InstructionStatusResult
src/api/entities/Instruction/index.ts:354
InstructionStatusResult
Entity
CheckpointSchedule
isEqual
src/api/entities/Entity.ts:61
src/api/entities/Instruction/index.ts:135
src/api/entities/Instruction/index.ts:159
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:396
NoArgsProcedureMethod
reject.checkAuthorization
TransactionQueue
Instruction
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:428
NoArgsProcedureMethod
reschedule.checkAuthorization
TransactionQueue
Instruction
Entity
toJson
src/api/entities/Instruction/index.ts:457
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:416
NoArgsProcedureMethod
withdraw.checkAuthorization
TransactionQueue
Instruction
CheckpointSchedule
generateUuid
src/api/entities/Entity.ts:14
CheckpointSchedule
unserialize
src/api/entities/Entity.ts:23
ProcedureOpts
PaginationOptions
PaginationOptions
Entity
ProcedureOpts
ProcedureOpts
ProcedureOpts