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

Keepers

Keepers are external, incentivized bots or individuals that perform critical but gas-intensive functions for decentralized protocols, such as triggering liquidations.
Chainscore © 2026
definition
BLOCKCHAIN AUTOMATION

What are Keepers?

Keepers are off-chain agents or bots that perform predefined tasks on a blockchain when specific conditions are met, enabling the execution of smart contracts that require external data or events.

A keeper is an external, permissionless actor that monitors a blockchain network and executes specific functions when predefined conditions are satisfied. These conditions are typically encoded within smart contracts that are designed to be keeper-enabled, meaning they cannot self-execute. Instead, they rely on an external entity to call a function, such as performUpkeep() or checkUpkeep(), to trigger the contract's logic. This separation of condition checking and execution is fundamental to creating decentralized, automated systems for functions like liquidation in lending protocols, limit order fulfillment in DEXs, and rebalancing in yield aggregators.

The economic model for keepers is based on incentives. When a keeper successfully calls a function and triggers a state change, they are rewarded with a fee paid by the smart contract, often in the network's native token. This creates a competitive landscape where multiple keepers monitor for profitable opportunities. Prominent frameworks like Chainlink Keepers and Gelato Network provide standardized infrastructure, abstracting away the complexity of running keeper nodes. They offer reliability through decentralized networks of nodes and gas optimization by using techniques like meta-transactions to reduce costs for end-users.

Key technical components of a keeper system include the Registry (a smart contract that registers upkeep jobs), the Upkeep (the job definition with its target contract and balance), and the Perform function (the execution step). Keepers continuously poll the blockchain or use event logs to identify which registered jobs are eligible for execution (checkUpkeep returns true). This architecture is essential for DeFi applications where time-sensitive actions, such as liquidating an undercollateralized loan, must occur reliably without relying on a centralized, trusted party to initiate the transaction.

Beyond DeFi, keeper networks enable a wide range of automated smart contract use cases. These include issuing rebase tokens that adjust supply, triggering vesting contract releases, managing NFT minting phases, and maintaining data feeds for prediction markets. By providing secure and decentralized automation, keepers act as the robotic workforce of Web3, executing the "if-this-then-that" logic that makes complex, conditional blockchain applications possible and trust-minimized.

how-it-works
AUTOMATED SMART CONTRACT EXECUTORS

How Do Keepers Work?

Keepers are off-chain agents that monitor blockchain conditions and execute predefined smart contract functions when specific criteria are met, automating critical DeFi and Web3 operations.

A keeper is an external, permissionless actor—typically a bot or a network of nodes—that monitors the public mempool and on-chain state for predefined triggers. When a specific condition encoded in a smart contract is satisfied, such as a price reaching a certain threshold or a time limit expiring, the keeper submits the necessary transaction to the blockchain to execute the contract's function. This process is essential for operations that cannot be initiated autonomously by the smart contract itself, which is passive and reactive by design.

The core mechanism relies on incentive alignment. Smart contracts designed for keeper interaction, like those in DeFi protocols for liquidations or limit orders, include a fee or reward for the successful executor. This creates a competitive landscape where multiple keepers race to be the first to submit a valid transaction and claim the reward. This model, often called "Gas Wars," ensures timely execution but can lead to network congestion. To function, a keeper requires a funded Ethereum wallet to pay for gas fees and the technical capability to constantly monitor the chain and compute when conditions are met.

Common use cases highlight their critical role. In lending protocols like Aave or Compound, keepers automatically liquidate undercollateralized positions when a user's health factor falls below a threshold, protecting the protocol's solvency. In DEX limit orders, they execute trades when the market price hits the specified level. Rebalancing in automated portfolio managers and triggering insurance payouts are other key applications. Without keepers, these protocols would require manual, centralized intervention, undermining their decentralized and trustless promises.

Keeper services have evolved from individual scripts to sophisticated networks. Projects like Chainlink Keepers and Gelato Network provide reliable, decentralized keeper infrastructure, abstracting away the complexity for developers. They operate networks of nodes with uptime guarantees, handle transaction gas optimization, and can even sponsor gas fees under certain models. This allows developers to integrate automated contract execution by simply defining the trigger conditions and the function to call, without running their own keeper infrastructure.

The security and reliability of a keeper system are paramount. A poorly designed or incentivized system can lead to stale executions, missed opportunities, or manipulation. For high-value functions, using a decentralized network of keepers with economic penalties for misbehavior is crucial. Furthermore, the logic for triggering execution must be tamper-proof and verifiable on-chain to prevent keepers from triggering functions based on false data, which is why oracles are often used in conjunction with keepers for external data feeds.

key-functions
KEEPERS

Key Functions & Use Cases

Keepers are automated, permissionless bots that perform critical maintenance tasks on smart contracts, enabling key DeFi and blockchain functions without centralized intervention.

01

Liquidation Execution

Keepers monitor lending protocols for undercollateralized positions. When a loan's collateral value falls below a required threshold, a keeper automatically liquidates the position by selling the collateral to repay the debt, protecting the protocol's solvency. This is a core function for protocols like Aave and Compound.

  • Triggers: Price oracle updates, collateral ratio breaches.
  • Incentive: The keeper earns a liquidation bonus for performing this essential, time-sensitive task.
02

Limit Order Fulfillment

On decentralized exchanges (DEXs) like Uniswap V3, keepers execute limit orders. They monitor the market price and automatically swap tokens when a user's specified price target is met, providing an order-book-like experience on an automated market maker (AMM).

  • Mechanism: A keeper calls the smart contract's swap function when the pool's price ticks cross the user's limit price.
  • Benefit: Enables advanced trading strategies without requiring the user to be online.
03

Rebalancing & Yield Optimization

Keepers maintain the health of automated strategies in yield aggregators and index tokens. They rebalance portfolios by buying or selling assets to maintain target weightings, harvest yield from farming positions, and compound rewards to maximize returns.

  • Examples: Yearn Finance vault strategies, Index Coop's token rebalancing.
  • Action: Calls harvest() or rebalance() functions on manager contracts to optimize capital efficiency.
04

Cross-Chain Messaging & Upkeep

In cross-chain and layer-2 ecosystems, keepers act as relayers or upkeeps. They submit proof or data, like Merkle roots or price feeds, from one chain to another. This is essential for bridge operations, oracle updates, and the finalization of optimistic rollup states.

  • Protocols: Chainlink's Cross-Chain Interoperability Protocol (CCIP), Optimism's state root submission.
  • Function: Periodically calls a verifyAndUpdate() or finalizeWithdrawal() function on the destination chain.
05

Conditional Transaction Execution

Keepers enable automated smart contract workflows based on predefined conditions. Users can set up transactions that execute only when specific on-chain data (e.g., time, price, governance vote outcome) is met, creating decentralized automation.

  • Tools: Gelato Network, Keep3r Network, Chainlink Automation.
  • Use Case: "Sell this NFT if its floor price reaches 2 ETH" or "Claim my staking rewards every Friday."
06

Protocol Parameter Updates

Some decentralized protocols use keepers for routine parameter management. This can include adjusting interest rate models based on utilization, updating fee tiers, or triggering epoch-based distributions for staking rewards.

  • Decentralization: Replaces a centralized admin key with a permissionless, incentive-driven network.
  • Example: A keeper calls updateRateModel() on a lending market when the governance-approved conditions are signaled on-chain.
ecosystem-usage
KEEPERS

Ecosystem Usage

Keepers are automated, permissionless bots that execute predefined transactions when specific on-chain conditions are met, serving as the essential infrastructure for decentralized automation.

04

Rebasing & Epoch Management

Protocols with token rebasing mechanics (e.g., OlympusDAO) or set reward distribution epochs use keepers for time-based upkeep. At the end of each epoch or rebase period, a keeper triggers the contract function to:

  • Calculate and apply the new token supply.
  • Distribute staking rewards to participants.
  • Update protocol metrics and prepare for the next cycle.
05

Cross-Chain Messaging & Bridges

Keepers act as relayers or oracles for cross-chain communication. In optimistic bridge designs, they:

  • Monitor events on a source chain (e.g., a token lock).
  • Submit proof of that event to a destination chain.
  • Finalize the asset minting or message execution after a challenge window passes. This role is fundamental to interoperability.
06

Insurance & Resolution

Decentralized insurance protocols like Nexus Mutual utilize keepers for claims assessment and payout automation. When a covered event (e.g., a smart contract hack) occurs, keepers can:

  • Gather data and evidence from the blockchain.
  • Trigger a claims voting process among token holders.
  • Automatically execute the payout to validated claims, ensuring timely resolution.
incentive-mechanism
DEFI INFRASTRUCTURE

The Keeper Incentive Mechanism

An explanation of the economic model that motivates and coordinates decentralized actors to perform critical, time-sensitive tasks on blockchain networks.

The keeper incentive mechanism is a cryptoeconomic system designed to ensure the reliable execution of off-chain services—such as liquidations, limit orders, or oracle updates—by rewarding decentralized actors, known as keepers or bots, for performing these tasks. This mechanism is foundational to DeFi protocols like Aave, MakerDAO, and dYdX, which rely on external agents to maintain system solvency and efficiency. Without a properly structured incentive layer, these critical functions would require centralized, trusted operators, undermining the protocol's decentralization and resilience.

The mechanism typically functions as a competitive auction or a fixed reward system. In a liquidation auction, for example, the first keeper to successfully liquidate an undercollateralized position earns a liquidation penalty or bonus as a reward, which is deducted from the liquidated user's collateral. This creates a race condition where keepers are financially motivated to monitor the blockchain and submit transactions as swiftly as possible. The design must carefully balance the reward size to be sufficiently attractive to cover gas costs and operational overhead while not being excessively punitive to protocol users.

Effective incentive design must account for MEV (Maximal Extractable Value) and potential coordinated attacks. If rewards are too high, they can encourage keeper collusion or predatory behavior. If they are too low, critical functions may go unperformed during network congestion, leading to systemic risk. Advanced systems may implement dynamic reward curves or Dutch auctions to optimize for efficiency and fairness. The security of the entire protocol often hinges on this mechanism's robustness, making it a critical area of cryptoeconomic research and smart contract auditing.

security-considerations
KEEPERS

Security & Risk Considerations

Keepers are external, permissionless bots that execute predefined functions on smart contracts, such as liquidations or limit orders. Their security model is critical for protocol stability.

02

Economic Incentive Misalignment

Keeper profitability must be carefully calibrated. Insufficient rewards lead to keeper lethargy, where critical upkeep tasks go unperformed, risking protocol insolvency. Conversely, excessive rewards can encourage frontrunning and MEV extraction at the expense of regular users, increasing transaction costs and creating a toxic trading environment.

03

Smart Contract & Oracle Risk

Keepers interact directly with protocol smart contracts and rely on oracle price feeds. Key vulnerabilities include:

  • Reentrancy Attacks: Poorly secured keeper logic can be exploited.
  • Oracle Manipulation: If a keeper uses a manipulable price feed, it can trigger false liquidations.
  • Gas Price Volatility: During network congestion, transaction costs can exceed the keeper's profit margin, causing critical functions to stall.
06

Operational Security for Keepers

Individual keeper operators face significant opsec challenges:

  • Private Key Management: Compromised keys can lead to fund theft or malicious transactions.
  • Infrastructure Reliability: Requires high-uptime servers and robust monitoring.
  • Gas Optimization: Must dynamically adjust gas bids to ensure timely inclusion in blocks, especially during volatile market events where liquidation opportunities are highest.
ARCHITECTURE

Comparison of Keeper Network Models

A technical comparison of the primary architectural models for decentralized keeper networks, focusing on coordination, incentives, and execution guarantees.

Feature / MetricPermissionless P2PCentralized SchedulerCoordinated Auction

Coordination Mechanism

Gossip protocol

Central sequencer

On-chain auction

Entry Permission

Permissionless

Whitelist required

Permissionless (with stake)

Execution Guarantee

Probabilistic

Deterministic

Bond-secured

Keeper Selection

First to respond

Pre-defined schedule

Highest bid / Gas auction

Typical Latency

< 1 sec

< 500 ms

1-3 sec (auction period)

Failure Risk

Front-running, missed jobs

Single point of failure

Bond slashing, auction griefing

Example Protocol

Chainlink Keepers

EigenLayer AVS

KeeperDAO / MEV-Boost

technical-details
KEEPERS

Technical Details & Implementation

An in-depth look at the mechanisms, protocols, and technical architecture that power blockchain keepers, the automated agents responsible for executing predefined tasks in decentralized systems.

A keeper, also known as a bot or automated agent, is an off-chain service or piece of software that monitors a blockchain for specific conditions and executes predefined transactions when those conditions are met. This role is critical for the operation of DeFi protocols, which rely on timely execution of functions like liquidating undercollateralized loans, triggering limit orders, or rebalancing liquidity pools. Without keepers, many decentralized applications would remain inert, unable to perform the automated logic that defines their utility. They act as the robotic workforce that connects off-chain data and logic with on-chain contract execution.

The technical implementation of a keeper revolves around three core components: a listener, a decision engine, and an executor. The listener continuously scans the blockchain—via a node or indexing service—for state changes or emitted events from smart contracts. The decision engine evaluates this data against a predefined set of rules or conditions, such as checking if a loan's collateral ratio has fallen below a threshold. If the condition is satisfied, the executor formulates and broadcasts the necessary transaction, paying the required gas fees to the network. This entire process must be highly reliable and executed within competitive timeframes, especially for functions like liquidations.

Key protocols and networks have emerged to standardize and incentivize keeper operations. Chainlink Keepers provides a decentralized network where node operators are paid in LINK tokens to reliably execute registered upkeep jobs. The Gelato Network offers a similar service, abstracting away gas payments and execution complexity for developers. On a fundamental level, any Ethereum address with a balance of ETH can act as a keeper by calling a public function on a contract. However, professional keeper operations run sophisticated, low-latency infrastructure to maximize profitability and reliability, often participating in keeper auctions or flash loan-enabled transactions to optimize their returns.

The economic model for keepers is based on incentive alignment. They are typically rewarded with fees from the protocols they serve, such as a percentage of a liquidation penalty. This creates a competitive environment where keepers race to be the first to execute a profitable transaction, ensuring system functions are performed promptly. This model also introduces risks, such as front-running and gas price wars, where keepers bid up transaction fees to prioritize their execution. Protocols must carefully design their incentive structures to ensure keepers are profitable enough to be reliable without making the cost prohibitive for end-users.

From an architectural perspective, keeper design involves significant off-chain complexity. Operations require access to low-latency blockchain nodes, robust transaction simulation to avoid failed (and costly) executions, and sophisticated strategies for managing gas prices. Many keeper services now offer meta-transactions or gasless transactions, where the cost of execution is abstracted and paid by the protocol or deducted from the transaction's outcome. This technical stack transforms a simple script into a resilient, profit-seeking automated system that is a foundational piece of infrastructure for the decentralized web.

KEEPERS

Common Misconceptions

Automated agents known as keepers are essential for decentralized applications, but their role is often misunderstood. This section clarifies key concepts about their operation, incentives, and limitations.

No, keepers and oracles serve fundamentally different purposes. A keeper is an off-chain bot that executes predefined transactions on-chain when specific conditions are met, such as liquidating an undercollateralized loan. An oracle, in contrast, is a service that provides external data (like price feeds) to a smart contract. While both are external actors, a keeper acts on data, whereas an oracle supplies data. A protocol like MakerDAO uses a price oracle to determine collateral value, and separate keeper bots to trigger liquidations based on that data.

KEEPERS

Frequently Asked Questions (FAQ)

Answers to common questions about blockchain keepers, the automated agents that execute predefined tasks on decentralized networks.

A keeper is an off-chain, automated agent or bot that monitors a blockchain network and executes predefined transactions when specific conditions are met. Keepers perform critical maintenance tasks that are not economically viable or technically feasible for regular users to perform manually, such as liquidating undercollateralized loans in DeFi, triggering limit orders in DEXs, or initiating protocol-specific functions like rebasing or rebalancing. They operate by listening for on-chain events or monitoring off-chain data feeds (oracles) and submitting the required transaction with their own gas fees, often earning a reward or fee for their service. This role is essential for the automated and trustless operation of many decentralized applications (dApps).

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
What are Keepers in DeFi? Definition & Role | ChainScore Glossary