Automation icon
Automation

Automate any smart contract—up to 1/10th the gas cost

Chainlink Automation is an ultra-reliable and performant smart contract automation solution enabling developers to quickly scale their operations in a verifiable, decentralized, and cost-efficient manner.

Quick Starts
> Checking conditions...
> Conditions met
> Performing Upkeep...
> Upkeep performed
Maker logo
Stake Dao logo
Synthetix logo
Balancer logo
aave logo
Maker logo
Stake Dao logo
Synthetix logo
Balancer logo
AAVE logo

The most secure, reliable, and cost-effective automation service for Web3 developers

Chainlink Automation enables smart contract developers to innovate, optimize costs, unlock compute power, save time and resources spent on DevOps, and scale faster.

Secure, verifiable, reliable, and performant

Chainlink Automation delivers the strongest security guarantees in the market, with verifiable compute provided via Chainlink's OCR3 consensus mechanism.

Gas and Operations Efficiency

With OCR 3.0 enabling Automation nodes to come to consensus, users can offload their expensive onchain computation offchain to Chainlink Automation’s Decentralized Oracle Network at a fraction of the cost—with the same cryptographic guarantees.

Business-boosting innovation

Discover endless possibilities with log triggers, brand new ways of connecting smart contracts and building autonomous dApps, and massively increased computation power with Verifiable compute.

Automate seamlessly, save time and resources, scale faster

Scale hassle-free, from zero to millions of transactions, and avoid the challenges that come with building and maintaining the infrastructure needed to reliably automate across multiple chains.

Start building with Chainlink Automation

Automate your smart contracts with industry-leading security and reliability guarantees while reducing your gas consumption.

Copy icon


function checkUpkeep(Log calldata log, bytes memory) external view returns (bool upkeepNeeded, bytes memory performData)
	{
	  // checkUpkeep is simulated off chain by a Chainlink DON using OCR3
	  // Do all of your off computation here for free
	  // Pass the result of the computation to perfomUpkeep through performData
	  return (true, performData)
	}
	
function performUpkeep(bytes calldata performData) external 
	{
	  //On chain transaction logic
	}

Copy icon

struct Log {
    uint256 index;
    uint256 timestamp;
    bytes32 txHash;
    uint256 blockNumber;
    bytes32 blockHash;
    address source;
    bytes32[] topics;
    bytes data;
}

function checkLog(Log calldata log, bytes memory) external view returns (bool upkeepNeeded, bytes memory performData)
  {
    // Define the log that triggers your upkeep during the registration process
    // Once detected, checkLog will run
    // Use the data from the log here!
    return (true, performData)
  }

function performUpkeep(bytes calldata performData) external override 
  {
    //On chain transaction logic
  }

Copy icon

function checkLog(Log calldata log, bytes memory)
        external
        view
        returns (bool upkeepNeeded, bytes memory performData)
    {
        // The StreamsLookup revert message tells the Chainlink DON to go retrieve Data Streams data
        revert StreamsLookup(
            STRING_DATASTREAMS_FEEDLABEL,
            ARRAY_OF_FEED_IDS,
            STRING_DATASTREAMS_QUERYLABEL,
            log.timestamp,
            extraData
        );
    }

// The data retrieved after StreamsLookup is called is passed into checkCallback
function checkCallback(bytes[] calldata values, bytes calldata extraData)
        external
        pure
        returns (bool, bytes memory)
    {
        return (true, abi.encode(values, extraData));
    } 
    
// if checkCallback returns true, the price data is passed to performUpkeep for an on chain transaction
function performUpkeep(bytes calldata performData) external override {
        (bytes[] memory signedReports, bytes memory extraData) = abi.decode(
            performData,
            (bytes[], bytes)
        );	
	bytes reportData = verifier.verify(signedReports[0]);
	// Use signedReports as need to complete your transaction with price data
    }
 

Industry-leading automation powered by a decentralized network

Automation nodes use your triggers and logic to determine what needs to happen onchain (and when). Nodes then come to consensus and the signed report is sent onchain to ensure the computation is verifiable, providing strong security and reliability guarantees.

Use cases

Use Cases

DeFi

From launching a DeFi product to scaling it across chains, Chainlink Automation provides DeFi protocols with the reliability and security that underpins the growth of the industry. Automation keeps you ahead in the fast-paced DeFi space by offering secure offchain computation and seamless integration with low-latency market data to enhance DeFi protocols and enable innovation through autonomously functioning smart contracts.

View more use cases
“Chainlink Automation provides us with a provably reliable infrastructure to automate key smart contract operations in Tranchess in a decentralized manner. By automating the regular settlement of our funds along with Chainlink-powered TWAP oracle calculations, Tranchess continues to improve the superior user experience whilst empowering DeFi users with a wide variety of asset allocation flexibilities at the same time.”
Tranchess team

Derivatives

Chainlink Automation 2.0 provides the best trading experience at the lowest cost by combining secure and reliable execution on low-latency market data with verifiable compute to reduce transaction gas costs. Innovate faster by tapping into the full potential of smart contracts.

View more use cases
“Chainlink Data Streams allow GMX to deliver maximum speed, security, and reliability at scale and without compromise. They are essential infrastructure to unlock the future of highly performant, reliable, and decentralized on-chain derivatives.”
X
Development core contributor of GMX

Prediction Markets

Chainlink Automation 2.0 empowers prediction markets with strong security guarantees and timely confirmation of transactions. Explore new possibilities in prediction markets with Chainlink CCIP, Data Streams, and Functions, while benefiting from decreased gas costs and increased operational efficiency. Scale effortlessly across multiple chains and enhance the user experience by increasing reliability and reducing costs and waiting times.

View more use cases
PancakeSwap logo
“We needed a reliable automation service in order for our prediction market to run exactly on-time every 5 minutes. Chainlink Automation provided us with a highly reliable solution we can depend on.”
Chef Snowball
Head Chef at PancakeSwap

Vault Rebalancing

Chainlink Automation 2.0 enables DeFi protocols to dynamically and securely rebalance their vaults according to verifiable offchain calculations and real-time conditions, significantly reducing gas costs and helping enhance the long-term performance of the vaults. As you focus on refining your asset strategy, Automation helps ensure that it scales across chains to deliver improved performance.

View more use cases
Pickle Finance
Reliable automation was the missing piece to creating a system that took advantage of UniswapV3 LP positions. We’re very excited about the opportunity to grow revenue for users without manual management from users or the core Pickle Finance team. Instead, independent Keepers in the Chainlink Network that have proven to be reliable node operators, even among periods of high network activity, can make life easier for everyone.”
Pickle Finance

Gaming

With Chainlink Automation 2.0, developers can create dynamically responsive games leveraging offchain computation, enhancing user experience and potentially introducing novel game mechanics tied to real-world events. Your gaming protocols can scale from zero to thousands of transactions seamlessly, benefiting from cost-effectiveness and operational efficiency. Unlock new gaming experiences with log triggers and verifiable computation capabilities.

View more use cases
Planet IX logo
“As best-in-class smart contract automation infrastructure, Chainlink Automation provides us with a secure and reliable execution service that helps us reduce costs associated with the creation of Planet IX NFTs.”
Karl Blomsterwall
CEO of Planet IX

Elevate your Web3 strategy

Get the latest Chainlink content straight to your inbox.