Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenLayer Intelligent Contracts

A collection of Intelligent Contracts built on GenLayer — the AI-native blockchain that brings verifiable trust to smart contracts using LLM consensus.

Deployed and tested on GenLayer Testnet Bradbury (March 2026)


Hackathon Project: FactLayer

Testnet Bradbury Hackathon — March 20 – April 3, 2026

FactLayer is a decentralized fact-checking protocol built on GenLayer. Anyone submits a claim + source URL. Multiple AI validators independently fetch the URL, analyze the content, and vote. LLM consensus produces a tamper-proof verdict stored on-chain: ✅ TRUE / ❌ FALSE / ❓ UNVERIFIABLE.

This would be impossible on Ethereum or Solana — GenLayer is the only chain that can fetch live web content and run LLM inference as part of consensus.


What is GenLayer?

GenLayer is a blockchain where smart contracts can:

  • Query the live internet
  • Process unstructured data (text, images, news)
  • Make AI-driven subjective decisions via multi-LLM consensus

Traditional smart contracts are deterministic. GenLayer's Intelligent Contracts are not — they can reason.


Contracts in this Repo

Contract Description Status
factlayer.py Decentralized fact-checking via web fetch + LLM consensus Hackathon 🏆
llm_query.py Queries a live URL and extracts information via LLM Deployed ✅
ai_vote.py Multi-option AI voting system with LLM-based result validation Deployed ✅
price_checker.py Fetches and validates live asset prices via web + AI consensus Deployed ✅

Getting Started

Prerequisites

  • MetaMask wallet
  • GenLayer Testnet added to MetaMask
  • Testnet GEN tokens from faucet

Add GenLayer Testnet to MetaMask

Field Value
Network Name GenLayer Testnet Bradbury
RPC URL See portal or Studio
Chain ID (shown in Studio on connect)
Currency Symbol GEN

Get Testnet Tokens

  1. Go to: https://testnet-faucet.genlayer.foundation/
  2. Solve captcha → Request Tokens
  3. Wait for confirmation in MetaMask

Deploy a Contract

  1. Open GenLayer Studio
  2. Connect your wallet
  3. Paste or upload a contract from this repo
  4. Click Run and Debug (▶ play button)
  5. Confirm transaction in MetaMask

Tutorial

Full step-by-step guide for Windows users: 👉 Getting Started on Windows


Resources


Author

Built by @efidal as part of the GenLayer Testnet Bradbury Hackathon 2026. Twitter: @MehdiFidal

About

Intelligent Contracts on GenLayer Testnet Bradbury — AI-native blockchain

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages