getScheduledOrdersExecutor
Get the scheduled orders executor module object.
Usage
const module = getScheduledOrdersExecutor({
chainId: sepolia.id,
executeInterval: 1000,
numberOfExecutions: 10,
startData: 1724184464,
executionData: '0x123...',
})
Parameters
chainId
- Type:
number
The chain ID of the chain to use. This is necessary to pick the correct Uniswap router address.
executeInterval
- Type:
number
The interval in seconds between each execution.
numberOfExecutions
- Type:
number
The number of executions to perform.
startData
- Type:
number
The start data for the execution as a UNIX timestamp.
executionData
- Type:
Hex
(opens in a new tab)
The data for the scheduled order, see getSwapOrderData
for more information.
hook (optional)
The address of the hook to use. This is only required for the Kernel account.
Returns
module
- Type:
Module
The scheduled orders module object.