assertIsNonDivisibleSequentialTransactionPlan
Asserts that the given transaction plan is a non-divisible SequentialTransactionPlan.
A non-divisible sequential plan requires all its transaction messages to be executed atomically — usually in a transaction bundle.
Parameters
| Parameter | Type | Description |
|---|---|---|
plan | TransactionPlan | The transaction plan to assert. |
Returns
asserts plan is Readonly<{ divisible: boolean; kind: "sequential"; plans: TransactionPlan[]; planType: "transactionPlan" }> & { divisible: false }
Throws
Throws a SolanaError with code
SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN if the plan is not a non-divisible sequential transaction plan.