PNP Markets for Openclaw

A decentralized protocol for creating and managing prediction markets on the Base network using any ERC20 token as collateral.

proxima424
v1.0.0
Feb 3, 2026
1
3.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install create-prediction-markets

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install create-prediction-markets using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PNP Markets?

PNP Markets is a robust framework designed for developers and organizations to deploy prediction market infrastructure directly on Base Mainnet. It allows users to leverage any ERC20 token as collateral, facilitating the creation of bespoke markets for forecasting, contests, and information discovery. By utilizing a pAMM (Predictive Automated Market Maker) virtual liquidity model, it ensures smooth trading experiences even with low initial liquidity.

This skill for Openclaw Skills provides a bridge to the world of information finance, enabling agents to programmatically handle the entire lifecycle of a prediction market. Whether you are building crowd-sourced probability engines or adding utility to a specific token ecosystem, this tool simplifies the complexity of on-chain market management.

PNP Markets Use Cases

  • Launching prediction markets to reveal collective probability estimates on specific global or local events.
  • Creating engagement contests where participants stake tokens on various competitive outcomes.
  • Enhancing token utility by allowing custom ERC20 tokens to be used as market collateral.
  • Developing decision-support tools that aggregate crowd wisdom through market-based forecasting.
  • Building automated trading systems that interact with prediction market liquidity pools.

How PNP Markets Works

  1. Configuration: Set up the environment with a wallet private key and a Base RPC endpoint to interact with the blockchain.
  2. Market Creation: Define a question, duration, and initial liquidity to deploy a new market condition on-chain.
  3. Trading: Users buy or sell YES/NO outcome tokens using the designated ERC20 collateral via the pAMM.
  4. Settlement: Once the market duration expires, the market is settled by identifying the correct winning outcome.
  5. Redemption: Participants who held the winning tokens redeem their earnings directly from the smart contracts.

PNP Markets Setup

Set your environment variables to begin using the skill with Openclaw Skills:

export PRIVATE_KEY=<your_wallet_private_key>
export RPC_URL=https://mainnet.base.org

To create your first market via CLI:

npx ts-node scripts/create-market.ts \
  --question "Will ETH reach $10k by Dec 2025?" \
  --duration 168 \
  --liquidity 100

PNP Markets Data Schema & Taxonomy

The skill manages market data and interactions through the following structure:

Entity Details
Condition ID Unique 0x hex string identifying a specific prediction market.
Collateral Supported ERC20 tokens (e.g., USDC, WETH, cbETH) used for trading.
Outcome Tokens Binary tokens (YES/NO) representing positions in a market.
pAMM Model Virtual liquidity parameters ensuring trade execution and price discovery.
Contract Factory The central PNP Factory contract on Base (0x5E5ab...) managing market deployments.

PNP Markets Advanced Features

  • Multi-collateral support allowing any valid ERC20 token to act as the market's base currency.
  • Programmatic SDK (PNPClient) for deep integration into custom AI agents and dApps.
  • Infinite approval workflow for optimized gas efficiency and seamless user experience.
  • Status tracking and info-only modes for real-time price and outcome monitoring.
  • Production-ready error handling for RPC rate limits and transaction confirmation delays.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*