DEV Community

Gelato Network
Gelato Network

Posted on

What is a smart contract resolver, when do you need it, and how to write a resolver?

A resolver is a smart contract in which developers can embed their logic of "when" an execution should occur and what data should executors use for the execution. Gelato will query these resolvers periodically to check if it is time to execute.

You need a resolver if

  • You want to define the conditions of "when" Gelato should execute your task.
  • You want to have different arguments for the function you are automating on each execution.

You do not need a resolver if

  • You simply want to repeatedly call a smart contract function with the same or without arguments (e.g. every 1 hour).
  • If you just want Gelato to try to execute a particular function in case it does NOT revert

Watch the tutorial:

--
Automate your smart contracts on Gelato Ops: https://app.gelato.network/

Latest comments (0)