Class: Instruction
api/entities/Instruction.Instruction
Represents a settlement Instruction to be executed on a certain Venue
Hierarchy
-
Entity
<UniqueIdentifiers
,string
>↳
Instruction
Properties
id
• id: BigNumber
Unique identifier number of the instruction
Defined in
api/entities/Instruction/index.ts:89
uuid
• uuid: string
Inherited from
Defined in
Methods
affirm
▸ affirm(args?
, opts?
): Promise
<GenericPolymeshTransaction
<Instruction
, Instruction
>>
Affirm this instruction (authorize)
Parameters
Name | Type |
---|---|
args? | AffirmOrWithdrawInstructionParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<Instruction
, Instruction
>>
Note
this method is of type OptionalArgsProcedureMethod, which means you can call affirm.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
api/entities/Instruction/index.ts:479
details
▸ details(): Promise
<InstructionDetails
>
Retrieve information specific to this Instruction
Returns
Promise
<InstructionDetails
>
Defined in
api/entities/Instruction/index.ts:251
executeManually
▸ executeManually(args?
, opts?
): Promise
<GenericPolymeshTransaction
<Instruction
, Instruction
>>
Executes an Instruction either of type SettleManual
or a Failed
instruction
Parameters
Name | Type |
---|---|
args? | ExecuteManualInstructionParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<Instruction
, Instruction
>>
Note
this method is of type OptionalArgsProcedureMethod, which means you can call executeManually.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
api/entities/Instruction/index.ts:499
exists
▸ exists(): Promise
<boolean
>
Determine whether this Instruction exists on chain (or existed and was pruned)
Returns
Promise
<boolean
>
Overrides
Defined in
api/entities/Instruction/index.ts:233
getAffirmations
▸ getAffirmations(paginationOpts?
): Promise
<ResultSet
<InstructionAffirmation
>>
Retrieve every authorization generated by this Instruction (status and authorizing Identity)
Parameters
Name | Type |
---|---|
paginationOpts? | PaginationOptions |
Returns
Promise
<ResultSet
<InstructionAffirmation
>>
Note
supports pagination
Defined in
api/entities/Instruction/index.ts:303
getInvolvedPortfolios
▸ getInvolvedPortfolios(args
): Promise
<(NumberedPortfolio
| DefaultPortfolio
)[]>
Retrieve all the involved portfolios in this Instruction where the given identity is a custodian of
Parameters
Name | Type |
---|---|
args | Object |
args.did | string |
Returns
Promise
<(NumberedPortfolio
| DefaultPortfolio
)[]>
Defined in
api/entities/Instruction/index.ts:545
getLegs
▸ getLegs(paginationOpts?
): Promise
<ResultSet
<Leg
>>
Retrieve all legs of this Instruction
Parameters
Name | Type |
---|---|
paginationOpts? | PaginationOptions |
Returns
Note
supports pagination
Defined in
api/entities/Instruction/index.ts:349
getStatus
▸ getStatus(): Promise
<InstructionStatusResult
>
Retrieve current status of this Instruction
Returns
Promise
<InstructionStatusResult
>
Note
uses the middlewareV2
Defined in
api/entities/Instruction/index.ts:425
isEqual
▸ isEqual(entity
): boolean
Determine whether this Entity is the same as another one
Parameters
Name | Type |
---|---|
entity | Entity <unknown , unknown > |
Returns
boolean