TransactionPlanner
Plans one or more transactions according to the provided instruction plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
instructionPlan | InstructionPlan | The instruction plan to be planned and executed. |
config? | { abortSignal?: AbortSignal; maxInstructionsPerTransaction?: number; } | Optional configuration object for the planning process. |
config.abortSignal? | AbortSignal | - |
config.maxInstructionsPerTransaction? | number | Maximum number of instructions allowed in each planned transaction. Must be a positive integer no greater than 64 — the number of top-level instructions the transaction format can encode. Larger values throw SOLANA_ERROR__INSTRUCTION_PLANS__INVALID_MAX_INSTRUCTIONS_PER_TRANSACTION. Defaults to 16. |