Function: decodeJobsInstruction()
ts
function decodeJobsInstruction(
instruction
): DecodedJobsInstruction | undefined;Decode a jobs instruction into its name and labelled accounts/arguments.
This is what lets a bulk sendBatch caller recover the accounts an instruction created or acted on — for example the freshly generated job and run addresses of a list — without threading that state through by hand. Account keys match the program's account names.
Parameters
| Parameter | Type | Description |
|---|---|---|
instruction | Instruction | The instruction to decode. |
Returns
| DecodedJobsInstruction | undefined
The decoded instruction, or undefined if it is not a recognised jobs instruction (or cannot be decoded).