TransactionPlanner

type TransactionPlanner = (instructionPlan, config?) => Promise<TransactionPlan>;

Plans one or more transactions according to the provided instruction plan.

Parameters

ParameterTypeDescription
instructionPlanInstructionPlanThe instruction plan to be planned and executed.
config?{ abortSignal?: AbortSignal; maxInstructionsPerTransaction?: number; }Optional configuration object for the planning process.
config.abortSignal?AbortSignal-
config.maxInstructionsPerTransaction?numberMaximum 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.

Returns

Promise<TransactionPlan>

See

On this page