- Create a smart agent that autonomously executes transactions
- Use the
ISchedulerhelper interface to manage agent actions - Configure scheduling parameters to control when and how your agent operates
Import IScheduler for your agent
The
IScheduler interface is Ritual’s convenience library that enables
your agent to schedule and execute autonomous actions.Your agent can use simple configuration parameters through functions like <IScheduler>.schedule() to set up its automated behaviors:Your agent’s behavior can be customized through the
<IScheduler>.schedule()
parameters:
| Parameter | Description |
|---|---|
| fn | Function to invoke + optional calldata |
| maxGasLimit | Max gas limit, in wei, per call |
| maxGasPrice | Max gas price, in wei, to pay per call |
| maxBlockNumber | Max block number after which subsequent calls are invalidated |
| frequency | Number of blocks between each subsequent call |