Build autonomous agents that perform recurring, conditional transactions.
IScheduler
helper interface to manage agent actionsImport IScheduler for your agent
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:Program your agent's recurring actions
<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 |