Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Upkeep

An automated, recurring transaction or process that maintains the state or triggers periodic functions in a smart contract or on-chain game.
Chainscore © 2026
definition
BLOCKCHAIN AUTOMATION

What is Upkeep?

In blockchain and smart contract systems, an upkeep is a scheduled task or condition that triggers the execution of a smart contract function.

An upkeep is a registered job within a decentralized oracle network, such as Chainlink Automation, that automatically executes a smart contract function when predefined conditions are met. These conditions can be based on time (e.g., every 24 hours) or on-chain events (e.g., a price reaching a specific threshold). The core purpose is to enable trustless automation for smart contracts, which lack native capabilities to initiate their own functions or fetch external data. This mechanism is critical for maintaining the health and functionality of decentralized applications (dApps) without relying on centralized, manually-operated servers.

The technical architecture involves three key components: the Upkeep contract (the smart contract requiring service), the Registry contract (which maintains a list of all registered upkeeps), and the Automation Network (decentralized nodes that monitor conditions and perform executions). To create an upkeep, a developer registers their contract and funds it with LINK tokens to cover transaction gas costs and node operator fees. The network's nodes then continuously check the checkUpkeep function on the registered contract; when the logic returns true, a node calls the performUpkeep function to execute the desired logic.

Common use cases for upkeeps are diverse and fundamental to DeFi and Web3. They include: - Automated yield harvesting and vault compounding in liquidity pools. - Rebalancing token portfolios in algorithmic trading strategies. - Triggering limit orders or liquidations when asset prices hit targets. - Minting new NFTs on a regular schedule for a collection. - Performing routine maintenance like issuing rewards or unlocking vesting tokens. Without this automation, these functions would require a centralized entity to manually send transactions, reintroducing points of failure and undermining decentralization.

The security model of an upkeep system is paramount. Decentralized execution ensures no single node has control over the trigger, with multiple nodes verifying conditions. Predefined gas limits and manager controls prevent malicious or faulty upkeeps from draining funds. Furthermore, the use of a cryptoeconomic security model, where node operators stake collateral and are penalized for misbehavior, aligns incentives for reliable performance. This makes upkeep networks a more secure and robust alternative to traditional cron jobs or centralized automation services.

When comparing upkeeps to other oracle services, a key distinction is the initiation of the transaction. While data feeds (like price oracles) push external data to a contract upon request, upkeeps are about activating a contract's function from an external stimulus. They solve the "oracle problem" for automation, whereas data feeds solve it for information. Together, these services form the critical off-chain infrastructure that allows smart contracts to interact reliably with real-world conditions and time-based events, fulfilling their potential as self-executing agreements.

etymology
TERM BACKGROUND

Etymology & Origin

This section traces the linguistic and conceptual origins of the term 'upkeep' within the context of blockchain and smart contract automation.

The term upkeep originates from general English, meaning the process of keeping something in good condition or operational state, as in the 'upkeep of a machine.' In blockchain, it was formally adopted by Chainlink to describe the periodic, automated tasks required to maintain the health and continuous operation of a decentralized oracle network and its supported smart contracts. This specialized usage emphasizes the proactive, scheduled maintenance necessary for reliable off-chain data delivery and on-chain computation.

Conceptually, the need for a dedicated 'upkeep' mechanism arose from the limitations of purely reactive or on-demand oracle designs. Early oracle solutions often relied on users or contracts to manually request data, which could lead to failures if a request was missed. The introduction of Automated Functions and the Keeper Network re-framed the oracle's role from a passive service to an active, self-sustaining system requiring regular 'check-ups' and executions, thus making the term 'upkeep' a precise fit for its new technical function.

The evolution of the term is directly tied to the Chainlink Automation platform (formerly known as the Keeper Network). Here, an upkeep is a registered job definition that specifies a smart contract address, the type of trigger (e.g., time-based or custom logic), and the calldata for execution. This formalization turned the abstract concept of maintenance into a concrete, on-chain registrable object, creating a clear market for service providers who compete to perform these upkeep tasks reliably in exchange for compensation.

how-it-works
MECHANISM

How Upkeep Works

An explanation of the operational lifecycle of a Chainlink Automation Upkeep, detailing the process from registration to execution.

An Upkeep is a smart contract registered with the Chainlink Automation network that defines a condition to check and an executable function to perform, which is triggered automatically when the condition is met. The core mechanism involves a decentralized network of Automation Nodes that continuously monitor the state of registered Upkeeps off-chain. When a node detects that an Upkeep's predefined condition—such as a time interval elapsing or a specific on-chain state being reached—is true, it submits a transaction to execute the associated on-chain logic. This decouples the computationally expensive condition checking from the blockchain, allowing for gas-efficient and reliable automation.

The lifecycle of an Upkeep begins with registration on the Chainlink Automation Registry contract, where the developer specifies the target contract address, the amount of LINK to fund it with for payment, the gas limit for execution, and a name. A critical component is the checkUpkeep function, which the Automation Nodes call in a read-only, gas-free manner to evaluate the condition. This function returns a boolean indicating if work is needed and the performData required for execution. Only if checkUpkeep returns true will a node proceed to call the performUpkeep function on-chain, which carries out the intended action, such as rebasing a token or settling a prediction market.

Payment for this service is managed via a subscription model. The Upkeep's balance of LINK tokens is held in the registry. After each successful performance, the network deducts a calculated fee based on current gas costs and a premium paid to the node operators. To ensure reliability and censorship resistance, the network uses a decentralized selection process where multiple nodes check the same condition; the first to submit a valid proof on-chain gets to execute the transaction and claim the reward. This design prevents a single point of failure and aligns operator incentives with the correct and timely execution of Upkeeps across various blockchain applications.

key-features
CHAINLINK AUTOMATION

Key Features of Upkeep

Upkeep is the core mechanism for executing off-chain logic to maintain the state of a smart contract, enabling trustless automation for DeFi, NFTs, and more.

01

Condition-Based Execution

An Upkeep is triggered when a predefined off-chain condition is met, such as a price reaching a specific threshold or a time interval elapsing. This decouples the check from the execution, allowing for complex logic without on-chain gas costs.

  • Example: A limit order executes when ETH/USD > $3,500.
  • Example: A rebasing token contract updates rewards every 24 hours.
02

Decentralized Execution Network

Chainlink Automation operates a decentralized network of Keeper nodes that compete to perform the Upkeep check and execution. This ensures liveness and censorship resistance, as any node can submit the transaction if the condition is true.

  • Nodes are incentivized by premiums paid in LINK.
  • Failed or malicious nodes are penalized via a slashing mechanism.
03

Gas-Efficient & Reliable

The checkUpkeep function runs off-chain, meaning the condition monitoring does not incur gas fees. Gas is only spent for the performUpkeep transaction when execution is required. The network uses upkeep gas limits and keeper funding to ensure transactions are submitted reliably, even during network congestion.

04

Flexible Registration & Management

Upkeeps are registered on-chain with configurable parameters, including:

  • Target contract address and calldata.
  • Gas limit and Keeper funding (in LINK).
  • Trigger conditions (logical, time-based, or custom).

They can be managed via interfaces like the Chainlink Automation App, allowing users to add funds, pause, or cancel their Upkeeps.

05

Use Cases & Examples

Upkeep automates critical maintenance tasks across Web3:

  • DeFi: Liquidations, yield harvesting, limit orders, and DEX rebalancing.
  • NFTs: Revealing collections, starting Dutch auctions, or distributing rewards.
  • Infrastructure: Rebasing tokens, performing regular contract upkeep (e.g., unlocking vesting schedules).
06

Security & Cost Model

Security is enforced through cryptoeconomic incentives. Keepers stake LINK and earn premiums for successful execution, but are slashed for malfeasance. The cost is predictable, based on:

  • A flat registration fee.
  • Gas reimbursement for the performUpkeep tx.
  • A premium payment to the Keeper, set by the user.
examples
UPKEEP

Common Examples & Use Cases

An Upkeep is a registered job on a decentralized oracle network that performs off-chain logic and submits the result on-chain. These are the primary mechanisms for automating smart contract functions based on time or external events.

01

Automated Yield Harvesting

A common DeFi upkeep that automatically claims and compounds rewards from liquidity pools or staking protocols at optimal intervals. This maximizes yield by reducing transaction costs and timing inefficiencies.

  • Logic: Checks if accrued rewards exceed a gas cost threshold.
  • Action: Executes the harvest and reinvestment transactions.
  • Example: Compounders on Aave or Uniswap V3 that re-stake accrued interest.
02

Liquidation Protection & Health Checks

Upkeeps monitor lending positions and trigger liquidation or safety actions when collateral ratios fall below a threshold. This protects both borrowers and the protocol's solvency.

  • Logic: Continuously queries oracle prices for collateral assets.
  • Action: If a position is undercollateralized, calls the protocol's liquidation function.
  • Example: Keepers on MakerDAO or Compound that liquidate vaults/CDPs.
03

Cross-Chain Messaging & Bridging

Upkeeps act as relayers in cross-chain architectures, monitoring events on one chain and initiating corresponding actions on another. They are crucial for message-passing bridges and omnichain applications.

  • Logic: Listens for a MessageSent event on the source chain.
  • Action: Submits a transaction with proof to the destination chain's bridge contract.
  • Example: Chainlink's CCIP relies on a decentralized network of upkeeps for cross-chain transaction execution.
04

Dynamic NFT & Game State Updates

Upkeeps enable evolving NFTs and off-chain game logic by periodically or conditionally updating token metadata or on-chain state based on external data.

  • Logic: Checks real-world events, time elapsed, or player actions.
  • Action: Calls the NFT contract's updateMetadata or game's resolveRound function.
  • Example: An NFT that changes appearance based on weather data or a play-to-earn game that finalizes battle outcomes.
05

Data Feed Updates & Oracle Maintenance

Core infrastructure upkeeps are responsible for periodically pushing data from off-chain sources to on-chain oracle contracts. They ensure data freshness and reliability for DeFi price feeds.

  • Logic: Fetches aggregated price data from multiple centralized and decentralized exchanges.
  • Action: Submits the median price and timestamp to the on-chain aggregator.
  • Example: Chainlink Data Feeds are updated by a decentralized network of node operators running upkeeps.
06

Contract & Parameter Rebalancing

Upkeeps automate portfolio rebalancing for on-chain funds and parameter adjustments for algorithmic protocols based on market conditions or governance votes.

  • Logic: Evaluates current asset allocations against target weights or checks governance execution conditions.
  • Action: Executes swaps via a DEX or calls an admin function to update protocol parameters (e.g., interest rates).
  • Example: An index fund like an ETF on-chain or an algorithmic stablecoin adjusting its collateral ratio.
ecosystem-usage
UPKEEP

Ecosystem Usage & Protocols

An upkeep is a recurring task or condition check registered on a decentralized network, such as Chainlink Automation, to maintain the correct state of smart contracts without manual intervention.

01

Automated Smart Contract Execution

Upkeeps enable time-based and condition-based automation for smart contracts. This removes the need for users or developers to manually trigger functions, which is critical for protocols requiring regular maintenance.

  • Time-based: Execute a function every N blocks or at a specific timestamp (e.g., a weekly rewards distribution).
  • Condition-based (Custom Logic): Execute when an on-chain condition is met (e.g., rebalancing a liquidity pool when price deviates).
02

Core Components: Registry & Performers

The upkeep ecosystem relies on a decentralized network of nodes and a central registry.

  • Upkeep Registry: A smart contract where tasks are registered, funded, and managed. It tracks the balance and configuration of each upkeep.
  • Automation Nodes (Performers): Decentralized nodes that monitor the registry, check upkeep conditions, and execute transactions when needed. They are compensated in native tokens for successful work.
03

Registration & Funding Model

To create an upkeep, a developer must register it on the network and pre-fund it with the native token (e.g., LINK).

  • Registration: Defines the target contract, trigger conditions, gas limit, and admin address.
  • Pre-funding: The upkeep contract holds a balance used to pay Automation Nodes for execution gas costs and their service premium. The upkeep becomes inactive if the balance is depleted.
04

Key Use Cases & Examples

Upkeeps are foundational for DeFi, NFTs, and DAO operations.

  • DeFi: Auto-compounding yield, liquidating undercollateralized loans, and executing limit orders.
  • NFTs: Releasing randomized traits or unlocking content after a specific date.
  • DAO Governance: Automatically executing a passed proposal after a timelock expires.
  • Data Feeds: Periodically updating an on-chain price oracle with fresh data.
06

Security & Reliability Considerations

Using a decentralized network for upkeeps mitigates critical risks.

  • Censorship Resistance: No single entity can prevent task execution.
  • High Uptime: A network of nodes ensures tasks are performed even if some nodes are offline.
  • Verified Execution: All performed upkeeps are recorded on-chain, providing transparency and auditability.
  • Gas Optimization: Networks can use techniques like gas price hedging to execute tasks cost-effectively.
security-considerations
UPKEEP

Security Considerations

Upkeep is the process of executing a smart contract's logic at predefined intervals. Its security is paramount, as it directly controls the execution of critical on-chain functions like rebasing, liquidations, and price updates.

01

Upkeep Registration & Authorization

The registration of an upkeep on a decentralized oracle network like Chainlink is a critical security step. It defines the execution parameters, funding source, and authorized upkeep administrators. A key vulnerability is improper access control, where an attacker could register a malicious upkeep or modify an existing one. Best practices include using multi-signature wallets for administrative actions and regularly auditing the on-chain registration data.

02

Condition Checking & Gas Limits

The performUpkeep function typically contains a conditional check (e.g., checkUpkeep) to determine if execution is needed. Security risks include:

  • Insufficient gas limits: If the gas limit set during registration is too low, complex upkeep logic may run out of gas and fail, potentially causing protocol insolvency.
  • Faulty condition logic: A bug in the condition check can cause the upkeep to be executed when it shouldn't be, or fail to execute when required.
  • Gas price spikes: During network congestion, the allocated gas may be insufficient, leading to missed executions.
03

Upkeep Execution & Reentrancy

The performUpkeep function executes the core logic. It must be hardened against common smart contract vulnerabilities:

  • Reentrancy attacks: The function should follow the checks-effects-interactions pattern, especially when transferring funds or calling external contracts.
  • Input validation: Any parameters decoded or passed into the function must be rigorously validated.
  • Access control: The function should verify the caller is the authorized Automation Network to prevent unauthorized execution.
  • Error handling: Robust try/catch or error propagation is needed to ensure one failed upkeep doesn't halt others in a batch.
04

Funding & Economic Security

Upkeeps are funded with LINK tokens (or the native token of the automation network) to pay for execution. Key economic risks are:

  • Balance depletion: If the upkeep's balance runs out, executions will stop. This requires active monitoring and top-up mechanisms.
  • Withdrawal security: Mechanisms to withdraw unused funds must have strict access controls to prevent theft.
  • Oracle network incentives: The security model relies on a decentralized network of nodes being economically incentivized to perform work correctly. A lack of sufficient node operators or rewards can impact reliability.
05

Decentralization & Censorship Resistance

Relying on a single entity or a small, permissioned set of nodes to perform upkeep creates centralization risk. A truly secure automation system should be:

  • Decentralized in execution: Multiple independent nodes should be able to compete to perform the upkeep, preventing censorship or manipulation.
  • Transparent and verifiable: All upkeep performances and condition checks should be verifiable on-chain.
  • Node operator diversity: The network should be operated by a geographically and jurisdictionally diverse set of entities to reduce systemic risk.
06

Monitoring & Incident Response

Proactive monitoring is essential for upkeep security. This involves:

  • Balance alerts: Monitoring the LINK balance of each upkeep contract to prevent depletion.
  • Execution logs: Tracking successful and failed performUpkeep transactions to identify patterns or attacks.
  • Condition monitoring: Independently verifying that the off-chain or on-chain conditions for execution are being evaluated correctly.
  • Having a manual override: In case of a critical bug or attack, protocols should have a secure, timelocked emergency pause or manual execution function to bypass the automated upkeep.
AUTOMATION MECHANISMS

Upkeep vs. Similar Concepts

Comparison of on-chain automation solutions based on their core operational model, trust assumptions, and typical use cases.

FeatureUpkeep (Chainlink Automation)Keeper Network (e.g., Gelato, Keep3r)Cron Job / Scheduled Transaction

Execution Trigger

Off-chain computation with on-chain verification (Log Trigger, Custom Logic)

Off-chain computation with on-chain verification

Time-based (block height/timestamp)

Trust Model

Decentralized Oracle Network

Decentralized or Permissioned Network

Centralized (relayer/EOA)

Gas Payment

Pre-funded registry contract (Upkeep balance)

Typically relayed & paid by network (meta-transactions)

Paid by EOA or contract balance

Stateful Logic Support

Condition Monitoring

Example Use Case

Rebalancing a lending position when health factor deteriorates

Executing a limit order when price target is met

Emitting a weekly governance reward

Typical Cost Model

Gas cost + premium, paid from Upkeep balance

Gas cost + fee, often paid in network token

Gas cost only

Infrastructure Overhead

Managed service (node operation abstracted)

Managed service or self-operated nodes

Self-managed server/cron service

technical-details-gaming
TECHNICAL DETAILS IN WEB3 GAMING

Upkeep

A technical mechanism for automating periodic state changes and maintenance tasks within a blockchain-based game or decentralized application.

In Web3 gaming, upkeep refers to a scheduled, automated process that triggers critical game logic on-chain, such as calculating resource generation, processing in-game events, or resolving player actions. This is often implemented using Chainlink Keepers or similar decentralized oracle networks, which act as a reliable, trust-minimized cron job service. The system calls a predefined function on a smart contract at regular intervals, ensuring the game world progresses and its state remains consistent and up-to-date without requiring manual intervention from players or a centralized server.

The upkeep function is the specific smart contract method executed during each upkeep cycle. This function contains the core logic for the game's passive systems, which might include: - Harvesting resources from virtual land - Applying buffs or debuffs to characters - Spawning new enemies or items - Calculating interest or rewards in a DeFi-game hybrid - Checking win conditions for tournaments. A failed or gas-inefficient upkeep function can stall the entire game economy, making its design and gas optimization a critical engineering concern.

For developers, implementing upkeep requires careful consideration of gas costs, execution frequency, and failure resilience. Since each execution consumes gas, game designers must balance the granularity of world updates with operational expenses. Furthermore, the decentralized nature of keeper networks means the transaction could be submitted by any node, so the upkeep logic must be idempotent (safe to run multiple times) and resistant to front-running. This shifts the architectural paradigm from a continuously running game server to an event-driven, state-transition model anchored by reliable external automation.

UPKEEP

Common Misconceptions

Clarifying frequent misunderstandings about Chainlink Automation's core service, which provides decentralized, reliable smart contract execution.

No, Chainlink Automation is a decentralized and cryptoeconomically secure service, fundamentally different from a simple cron job. A cron job runs on a single, centralized server, creating a single point of failure. In contrast, Chainlink Automation is powered by a decentralized network of nodes that compete to perform upkeeps. The work is verified on-chain, and nodes are economically incentivized (and penalized for malfeasance) via the Chainlink Network. This ensures reliability, censorship resistance, and tamper-proof execution that a traditional cron job cannot provide.

UPKEEP

Frequently Asked Questions (FAQ)

Essential questions and answers about Chainlink Automation's decentralized service for executing smart contract functions based on predefined conditions.

Chainlink Automation is a decentralized network that reliably executes smart contract functions when predefined conditions are met, eliminating the need for centralized bots or manual intervention. It operates using a network of Automation Nodes that compete to execute Upkeeps (registered maintenance tasks). The process involves: 1) A developer registers an Upkeep contract with a target contract address, function selector, and check data. 2) Off-chain Automation Nodes continuously monitor the blockchain state. 3) When a node's checkUpkeep function call returns true, it broadcasts the result. 4) The first node to submit a valid performUpkeep transaction on-chain gets rewarded with LINK tokens. This decentralized, incentivized model ensures high reliability and censorship resistance for critical smart contract operations like rebasing tokens, liquidations, and triggering limit orders.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team