Contract Templates
Start from a working example. Click "Use" to load a template into the deploy flow.
Hello World
beginnerThe simplest possible Intelligent Contract. Stores and retrieves a greeting string.
Simple Counter
beginnerIncrement, decrement, and reset a counter. The most minimal stateful contract with no LLM.
Key-Value Store
beginnerA simple on-chain key-value store. Set and get arbitrary string values by key.
Wizard of Coin
intermediateAn LLM-powered wizard who guards a magical coin and decides whether to give it away based on how you ask.
Content Oracle
intermediateFetches a webpage and uses LLM inference to answer a question about its content. Consensus enforced via strict equality.
Prediction Market
advancedA prediction market that uses LLM inference and web data to resolve YES/NO outcomes.
Simple DAO
intermediateA minimal DAO where members vote FOR or AGAINST a proposal. No LLM — pure on-chain governance logic.
Escrow with AI Arbiter
advancedA three-party escrow (buyer, seller, arbiter). If there is a dispute, an LLM reads the resolution URL and decides who gets the funds.
Web Data Aggregator
intermediateAggregates data from two URLs and synthesizes a summary on a given topic using LLM.
Token Price Tracker
intermediateFetches the current price of a token from a public webpage and stores it on-chain with consensus.
AI Fact Checker
advancedSubmit a claim and a source URL. The LLM reads the source and verifies whether the claim is TRUE, FALSE, or UNVERIFIABLE.
Crowdfunding
intermediateA simple on-chain crowdfunding campaign with a goal, deadline, and contributor tracking. No LLM — pure state logic.
Sports Bet Resolver
advancedPlace bets on sports match outcomes. The LLM reads a results page to resolve bets and award points. Inspired by the official GenLayer football bets example.
GitHub Profile Vault
intermediateFetches and stores AI-generated summaries of GitHub profiles on-chain using dual equivalence principles. Based on official GenLayer example.
Evolving Story
advancedA living narrative contract. Each write call uses LLM to add a new chapter that builds on all previous chapters. The story grows and evolves with every interaction — like a literary organism.
Digital Pet
intermediateA living creature on-chain. Feed it, play with it, and let it rest. Its mood and personality evolve with each interaction via LLM responses. Neglect it and it gets grumpy.
Self-Updating Knowledge Base
advancedA living knowledge contract that ingests web pages, summarises them with LLM, and merges the knowledge into a growing on-chain summary. Each update regenerates its own understanding — like a learning organism.
Adaptive Persona
advancedA contract with a living AI personality that evolves through conversations. Its character traits, opinions, and memories grow with each interaction — a digital being that changes over time.
On-Chain Debate Arena
advancedTwo sides debate a topic. The LLM generates arguments for each side and then judges the debate, declaring a winner based on argument quality.
Living Constitution
advancedA governance contract whose rules evolve over time. Members propose amendments, the LLM evaluates their merit against existing rules, and approved amendments are woven into the constitution — a document that grows and adapts like a living organism.