Getting Started with Chainlink Automation

Chainlink Automation will reliably execute smart contract functions using a variety of triggers. Explore the examples below to see how Chainlink Automation works for each type of trigger. Before you begin, you will need an active cryptocurrency wallet such as Metamask.

  • Time-based trigger: Use a time-based trigger to execute your function according to a time schedule.
  • Custom logic trigger: Use a custom logic trigger to provide custom solidity logic that Automation Nodes evaluate (offchain) to determine when to execute your function onchain.
  • Log trigger: Use log data as both trigger and input.

Click the tabs below to use Chainlink Automation with each type of trigger:

Increment a counter using custom logic stored onchain.

  1. Navigate to the Chainlink Automation app and connect to Arbitrum Sepolia in the top dropdown menu.

  2. Connect your cryptocurrency wallet to the app if you haven't done so already. You might also need to fetch LINK for the Arbitrum Sepolia testnet from faucets.chain.link.

  3. Click Register new Upkeep and select Custom logic trigger.

  4. Under Target contract address, enter 0x6C0AAAeBcDb6F5D03759B8BF14b47BE491755530. This contract is an Automation-compatible contract that uses logic stored onchain and onchain state to determine when to increment a counter. View the source code here. Click Next.

  5. Enter an Upkeep name, your public key address under Admin Address, 500000 under Gas limit, and 0.1 under Starting balance (LINK).

  6. Finally, enter your public key address under Check data (Hexadecimal). checkData is optional static data that you can pass into your upkeep to ensure your counter increments.

  7. Click Register Upkeep.

  8. After the transaction is complete, you can view the performs for your upkeep in the upkeep details. Your upkeep should perform once every minute and stop after 4 performs.

You have successfully automated your first custom logic upkeep. To learn more about creating custom logic upkeeps, read here.

Supported networks and costs

For a list of blockchains that are supported by Chainlink Automation, see the Supported Networks page. To learn more about the cost of using Chainlink Automation, see the Automation Economics page.

Contact us

For help with your specific use case, contact us to connect with one of our Solutions Architects. You can also ask questions about Chainlink Automation on Stack Overflow or the #automation channel in our Discord server. Utility contracts can also help you get started quickly.

What's next

Get the latest Chainlink content straight to your inbox.