CRE Templates Hub

Explore workflow templates for the Chainlink Runtime Environment.
Clone and customize these templates to build your own CRE workflows.

Templates

confidentialaisecurity

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.

confidentialliquidationdefi

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.

confidentialrebalancingdefi

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.

confidentialteesecrets

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-breakerrisk-managementsafety

Circuit Breaker

Monitor on-chain events for anomalies, automatically pause contracts when thresholds are breached using a dual-trigger circuit breaker pattern.

event-drivencompliance

Event Reactor

Listen for on-chain events, fetch off-chain context, and respond on-chain using the event → read → decide → write pattern.

keeperupkeepautomation

Keeper Bot

Cron-based smart contract maintenance — read state, check condition, execute if needed using the universal keeper pattern.

data-feedsprediction-marketdefi

Prediction Market (Data Feeds)

Full prediction market lifecycle with market creation, resolution using Chainlink Data Feeds, and dispute management.

vault-harvesteryielddefi

Vault Harvester

Automated DeFi vault harvesting — check if yield is profitable, then harvest and compound using CRE.

data-feedsproof-of-reserveaws

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.

data-feedscustom-dataproof-of-reserve

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).

data-feedscustom-data

Custom Data Feed

A template for bringing your own custom off-chain data feed on-chain with the Chainlink Runtime Environment (CRE).

indexerwebhookevent-monitoring

Indexer Block Trigger

Workflows for processing new blocks and transactions using block-triggered webhooks from Alchemy Notify.

indexerdata-fetch

Indexer Data Fetch

Workflows for pulling data from The Graph indexer with scheduled cron triggers using the pull pattern.

storagekey-value

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.

cross-chaindefitoken-management

Multi-Chain Token Manager

A multi-chain token manager that maximizes lending yields via automated cross-chain rebalancing using CRE integrated with CCIP.

prediction-marketai

Prediction Market Demo

An end-to-end automated, AI-powered prediction market using CRE integrated with Google's Gemini AI and Firebase.

data-feeds

Read Data Feeds

A set of minimal examples that read from Chainlink Data Feeds using the CRE chain reader on a cron schedule.

stablecoincross-chainproof-of-reserve

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-assetsasset-servicingcompliance

Tokenized Asset Servicing

Demonstrates CRE integration with LogTrigger and HTTP abilities to enable seamless off-chain data orchestration for tokenized assets.

x402data-feedsai

x402 Crypto Price Alerts

A crypto price alert system integrating x402 micropayments, Chainlink CRE workflows, and Gemini AI for natural language interaction.

Get the latest Chainlink content straight to your inbox.