Polymesh SDK API Reference
v11.0.2
v11.0.2
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • Context
    • CorporateAction
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TokenPermissions
    • 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 3 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


id

• id: BigNumber

Identifier number of the venue


uuid

• uuid: string

Methods

affirm

Affirm this instruction (authorize)

Parameters:

Name
Type

args

void

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

args

void

opts?


reschedule

Schedule a failed Instructi oto rwaa

Parameters:

Name
Type

args

void

opts?


toJson

â–¸ toJson(): string

Return the Instruction's ID

Returns: string


withdraw

Withdraw affirmation from this instruction (unauthorize)

Parameters:

Name
Type

args

void

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

• context:

Inherited from .

Defined in

Defined in

Inherited from .

Defined in

▸ affirm(args: void, opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call affirm.checkAuthorization on it to see whether the Current Account has the required 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(args: void, opts?: ): Promise‹‹››

Defined in

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

Returns: Promise‹‹››

▸ reschedule(args: void, opts?: ): Promise‹‹››

Defined in

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

Returns: Promise‹‹››

Overrides .

Defined in

▸ withdraw(args: void, opts?: ): Promise‹‹››

Defined in

note this method is of type , which means you can call withdraw.checkAuthorization on it to see whether the Current Account has the required 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
Context
Entity
context
src/api/entities/Entity.ts:48
src/api/entities/Instruction/index.ts:77
Entity
uuid
src/api/entities/Entity.ts:46
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:402
ProcedureMethod
TransactionQueue
Instruction
InstructionDetails
src/api/entities/Instruction/index.ts:194
InstructionDetails
Entity
exists
src/api/entities/Instruction/index.ts:176
PaginationOptions
ResultSet
InstructionAffirmation
src/api/entities/Instruction/index.ts:253
ResultSet
InstructionAffirmation
PaginationOptions
ResultSet
Leg
src/api/entities/Instruction/index.ts:299
ResultSet
Leg
InstructionStatusResult
src/api/entities/Instruction/index.ts:350
InstructionStatusResult
Entity
Entity
isEqual
src/api/entities/Entity.ts:61
src/api/entities/Instruction/index.ts:131
src/api/entities/Instruction/index.ts:155
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:392
ProcedureMethod
TransactionQueue
Instruction
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:422
ProcedureMethod
TransactionQueue
Instruction
Entity
toJson
src/api/entities/Instruction/index.ts:451
ProcedureOpts
TransactionQueue
Instruction
src/api/entities/Instruction/index.ts:412
ProcedureMethod
TransactionQueue
Instruction
Entity
generateUuid
src/api/entities/Entity.ts:14
Entity
unserialize
src/api/entities/Entity.ts:23
ProcedureOpts
PaginationOptions
PaginationOptions
Entity
ProcedureOpts
ProcedureOpts
ProcedureOpts