LaunchKit · 2026
Back to Skills

genlayer-dev

Build GenLayer Intelligent Contracts - Python smart contracts with LLM calls and web access.

1
1.3k downloads
by @acastellana

Setup & Installation

openclaw skills install @acastellana/genlayer-dev

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install genlayer-dev

What This Skill Does

GenLayer Intelligent Contracts are Python smart contracts that call LLMs and fetch live web data while maintaining blockchain consensus. Contracts use equivalence principles to reconcile non-deterministic outputs from AI and web sources across validators. The skill covers writing, deploying, and interacting with contracts using the GenLayer SDK and CLI.

Handles non-deterministic LLM and web results inside smart contracts without requiring custom off-chain infrastructure or oracles.

When to use it

  • Writing a contract that classifies user-submitted text using an LLM
  • Fetching live webpage content into on-chain state
  • Deploying contracts to a local or testnet network via CLI
  • Building a prediction market resolved by AI judgment
  • Calling EVM token contracts from a GenLayer contract

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Write a contract that fetches a URL and stores the page text on-chain

AGENT
  1. 1Scaffolds a Python contract extending gl.Contract with a str state field
  2. 2Adds a @gl.public.write method that captures the URL in a closure
  3. 3Calls gl.nondet.web.render inside gl.eq_principle.strict_eq to fetch and agree on page content
  4. 4Stores the result to contract state
  5. 5Provides genlayer CLI commands to deploy and invoke the fetch method
OUTPUT

A complete Python contract file with deploy and write interaction commands

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

genlayer CLI (npm install -g genlayer)