Step 2. Add a smart contract

To simplify setting up a new automation workflow, we’ll be adding a Lottery smart contract within Nerif App.

We suggest using the above code as a base to deploy your own lottery contract smart contract using Remix or any other preferred tool.

To add a deployed smart contract with the Nerif App, just click on “Contracts” and paste in the contract address. You’ll also need to select the respective network (e.g. Polygon Mumbai) and add a name to it. Picking a name is optional, but for convenience, we named the contract “Lottery”.

Finally, allow Nerif App to automatically determine contract ABI (subject to a contract being verified). If the contract is not publicly verified on the blockchain explorer (e.g. polygonscan), you’ll need to specify contract ABI manually.

Press “Create Contract” to complete the process.

It’s time to set up a new workflow for smart contract functions automation!

Last updated