Skip to Content
DeFi IntegrationsChainlinkChainlink Automation

Chainlink Automation

Stagenets allow you to instantly create Chainlink upkeeps that target your contracts with production-like behaviour. Currently, they support Time-Based and Custom Logic upkeeps. Learn how these upkeeps work in the Chainlink documentation .

Chainlink upkeeps are created and managed on the Stagenet in the Chainlink Automation section of the app. Access it from the sidebar via DeFi → Chainlink → Automation. On this page, you can create new upkeeps, view existing upkeeps, and see their recent executions.

Creating Upkeeps

To create an Upkeep, navigate to the Chainlink Automation section and click Create New Upkeep. Choose the Upkeep type (Time-Based or Custom Logic), then select the target contract by entering its address or choosing a contract with an existing Workspace from the address field’s Select dropdown.

Time-Based Upkeeps

Time-based upkeeps call a specific function on the target contract periodically. When creating one on the Stagenet, you need to select the function to call, enter any arguments you want to pass to it, and pick the time period via a cron schedule.

After creating the Time-Based upkeep, the Stagenet will send a transaction to the selected function with any entered arguments every time period. This transaction is sent via a randomly generated Caller Address, which you can see in the Upkeep’s info in the Chainlink Automation section.

Custom-Logic Upkeeps

Custom-logic upkeeps target contracts that inherit AutomationCompatibleInterface. It requires that a contract has a checkUpkeep and performUpkeep function.

When creating a Custom Logic Upkeep on a Stagenet, you can optionally provide check data. To mirror production behaviour, the Stagenet calls checkUpkeep on every block, passing this data. If checkUpkeep returns true, a transaction is sent to call performUpkeep with the corresponding performData. As with Time-Based Upkeeps, the transaction is sent via a randomly generated Caller Address, which you can see in the Upkeep’s info in the Chainlink Automation section.

Last updated on