Instruction

Represents a settlement Instruction to be executed on a certain Venue

Hierarchy

  • Entity‹UniqueIdentifiers›

    Instruction

Index

Properties

Methods

Properties

affirm

affirm: ProcedureMethod‹void, Instruction

Defined in src/api/entities/Instruction/index.ts:221arrow-up-right

Affirm this instruction (authorize)

Protected context

context: Context

Inherited from Entity.context

Defined in src/api/entities/Entity.ts:48arrow-up-right

id

id: BigNumber

Defined in src/api/entities/Instruction/index.ts:50arrow-up-right

Identifier number of the venue

reject

reject: ProcedureMethod‹void, Instruction

Defined in src/api/entities/Instruction/index.ts:215arrow-up-right

Reject this instruction

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

note reject on SettleOnBlock behaves just like unauthorize

uuid

uuid: string

Inherited from Entity.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

withdraw

withdraw: ProcedureMethod‹void, Instruction

Defined in src/api/entities/Instruction/index.ts:226arrow-up-right

Withdraw affirmation from this instruction (unauthorize)

Methods

details

details(): Promise‹InstructionDetails

Defined in src/api/entities/Instruction/index.ts:87arrow-up-right

Retrieve information specific to this Instruction

Returns: Promise‹InstructionDetails

getAffirmations

getAffirmations(paginationOpts?: PaginationOptions): Promise‹ResultSetInstructionAffirmation››

Defined in src/api/entities/Instruction/index.ts:134arrow-up-right

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

note supports pagination

Parameters:

Name

Type

paginationOpts?

Returns: Promise‹ResultSetInstructionAffirmation››

getLegs

getLegs(paginationOpts?: PaginationOptions): Promise‹ResultSetLeg››

Defined in src/api/entities/Instruction/index.ts:171arrow-up-right

Retrieve all legs of this Instruction

note supports pagination

Parameters:

Name

Type

paginationOpts?

Returns: Promise‹ResultSetLeg››

Static generateUuid

generateUuidIdentifiers›(identifiers: Identifiers): string

Inherited from Entity.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

Generate the Entity's UUID from its identifying properties

Type parameters:

Identifiers: object

Parameters:

Name

Type

Description

identifiers

Identifiers

Returns: string

Static unserialize

unserializeIdentifiers›(serialized: string): Identifiers

Inherited from Entity.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

Identifiers: object

Parameters:

Name

Type

Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?