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
TransactionPlanResult
for 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
abortSignal
is triggered, the executor will immediately stop processing the plan and return aTransactionPlanResult
with the status set tocanceled
.
Parameters
Parameter | Type |
---|---|
config | TransactionPlanExecutorConfig |