CRE Templates Hub
Explore workflow templates for the Chainlink Runtime Environment.
Clone and customize these templates to
build your own CRE workflows.
Prediction Market Demo
An end-to-end automated, AI-powered prediction market using CRE integrated with Google's Gemini AI and Firebase.
Templates
AI Smart Contract Audit Firewall
Automatically analyze and screen smart contract interactions before execution to detect and block malicious transactions, while preserving the confidentiality of chain scanner and LLM reasoning API credentials.
Automated Liquidation Protection
Automatically protect DeFi lending positions by continuously monitoring liquidation risk and executing collateral management, debt repayment, position reduction, or hedging strategies while preserving the confidentiality of centralized exchange as well as LLM API keys, proprietary risk management thresholds, and execution preferences.
Automated Portfolio Rebalancing
Automatically rebalance crypto portfolios by continuously monitoring allocation drift and executing portfolio adjustments when predefined thresholds are exceeded, while preserving the confidentiality of exchange API keys, LLM reasoning, portfolio allocation thresholds, and execution preferences.
Hello Confidential Workflows
Quickstart confidential workflow that registers a TEE handler, securely fetches a secret inside the enclave, executes a capability call from within the enclave, and returns to the DON for any operations requiring decentralized consensus.
Circuit Breaker
Monitor on-chain events for anomalies, automatically pause contracts when thresholds are breached using a dual-trigger circuit breaker pattern.
Event Reactor
Listen for on-chain events, fetch off-chain context, and respond on-chain using the event → read → decide → write pattern.
Keeper Bot
Cron-based smart contract maintenance — read state, check condition, execute if needed using the universal keeper pattern.
Prediction Market (Data Feeds)
Full prediction market lifecycle with market creation, resolution using Chainlink Data Feeds, and dispute management.
Vault Harvester
Automated DeFi vault harvesting — check if yield is profitable, then harvest and compound using CRE.
AWS CRE Price Feeds & Proof of Reserves
Workflows using Chainlink CRE to fetch data from AWS serverless APIs and write results to Ethereum smart contracts.
Bring Your Own Data (NAV & PoR)
A template for bringing your own off-chain Proof-of-Reserve (PoR) or Net-Asset-Value (NAV) data on-chain with the Chainlink Runtime Environment (CRE).
Custom Data Feed
A template for bringing your own custom off-chain data feed on-chain with the Chainlink Runtime Environment (CRE).
Indexer Block Trigger
Workflows for processing new blocks and transactions using block-triggered webhooks from Alchemy Notify.
Indexer Data Fetch
Workflows for pulling data from The Graph indexer with scheduled cron triggers using the pull pattern.
Key-Value Store (AWS S3)
A minimal example that reads a value from an AWS S3 object, increments it, and writes it back using SigV4-signed HTTP requests.
Multi-Chain Token Manager
A multi-chain token manager that maximizes lending yields via automated cross-chain rebalancing using CRE integrated with CCIP.
Prediction Market Demo
An end-to-end automated, AI-powered prediction market using CRE integrated with Google's Gemini AI and Firebase.
Read Data Feeds
A set of minimal examples that read from Chainlink Data Feeds using the CRE chain reader on a cron schedule.
Stablecoin with PoR, ACE & CCIP
A demo stablecoin issuance system demonstrating CRE integrated with Proof of Reserve (PoR), Automated Compliance Engine (ACE), and Cross-Chain Interoperability Protocol (CCIP).
Tokenized Asset Servicing
Demonstrates CRE integration with LogTrigger and HTTP abilities to enable seamless off-chain data orchestration for tokenized assets.
x402 Crypto Price Alerts
A crypto price alert system integrating x402 micropayments, Chainlink CRE workflows, and Gemini AI for natural language interaction.
Created by Chainlink Labs