createTransactionPlanExecutor
Creates a new transaction plan executor based on the provided configuration.
The executor will traverse the provided TransactionPlan sequentially or in parallel,
executing each transaction message using the executeTransactionMessage function.
- If that function is successful, the executor will return a successful
TransactionPlanResultfor that message including the transaction and any custom context. - If that function throws an error, the executor will stop processing and cancel all remaining transaction messages in the plan.
- If the
abortSignalis triggered, the executor will immediately stop processing the plan and return aTransactionPlanResultwith the status set tocanceled.
Parameters
| Parameter | Type |
|---|---|
config | TransactionPlanExecutorConfig |