pnp-markets
Create, trade, and settle prediction markets on Base with any ERC20 collateral. Use when building prediction market infrastructure, running contests, crowdsourcing probability estimates, adding utility to tokens, or tapping into true information finance via market-based forecasting.
Why use this skill?
Use pnp-markets to create, trade, and settle prediction markets on Base with any ERC20 collateral. Manage your information finance needs with ease.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/tariqsumatri82/create-prediction-markets-1-0-0What This Skill Does
The pnp-markets skill is a comprehensive toolkit for building, managing, and participating in prediction markets on the Base Mainnet. By utilizing any ERC20 token as collateral, this skill allows for the seamless creation of binary prediction markets, automated trading of YES/NO outcomes, and the eventual settlement and redemption of winnings. It serves as a bridge between information finance and blockchain, enabling users to crowdsource probability estimates or create utility-driven markets for existing token communities.
Installation
You can integrate this skill directly into your OpenClaw environment by running the following command in your terminal:
clawhub install openclaw/skills/skills/tariqsumatri82/create-prediction-markets-1-0-0
Ensure your environment variables are configured correctly, specifically setting the PRIVATE_KEY for signing transactions and an optional RPC_URL for reliable blockchain connectivity. Always prioritize using a dedicated RPC endpoint like Alchemy or QuickNode for production-grade deployments to avoid the rate limits associated with public endpoints.
Use Cases
- Forecasting & Sentiment: Create markets to gauge community sentiment on upcoming events or product launches.
- Token Utility: Increase the velocity and utility of your project's native token by allowing users to bet on ecosystem milestones.
- Risk Hedging: Use prediction markets to hedge against specific technical or market outcomes within the Base ecosystem.
- Contests: Organize community engagement events where users stake assets to predict future outcomes, such as protocol upgrades or market price targets.
Example Prompts
- "Create a new prediction market on Base asking 'Will the Base mainnet reach 500 TPS by December?' with a duration of 30 days and use USDC as the collateral."
- "Buy 50 YES tokens for the condition ID 0x123... using my currently approved USDC balance."
- "Check the current status of the market at 0xABC... and if it is settled, please trigger the redemption process for my winnings."
Tips & Limitations
Always ensure you have granted sufficient ERC20 token allowances to the pnp-markets contract before attempting to place trades; otherwise, transactions will revert. When creating markets, carefully calculate your collateral decimals—USDC uses 6, while most others use 18. This skill performs on-chain operations, meaning gas fees on the Base network apply to every action. Always double-check your condition IDs before submitting settlement requests to avoid unnecessary costs.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-tariqsumatri82-create-prediction-markets-1-0-0": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
alpha
Binance Alpha new coin launch detector. Uses WebSocket to monitor !miniTicker@arr stream and detects new trading pairs immediately when they appear. Maintains known symbols set in memory and triggers alert for new symbols with valid opening price.
appdeploy
Deploy web apps with backend APIs, database, and file storage. Use when the user asks to deploy or publish a website or web app and wants a public URL. Uses HTTP API via curl.
a2a-market
AI Agent skill marketplace integration for A2A Market. Enables agents to buy skills, sell skills, and earn money autonomously. Use when: (1) User asks to find/search/buy a skill or capability, (2) User wants to sell/list/monetize their agent's skills, (3) User asks about marketplace earnings or transactions, (4) Agent detects a capability gap and needs to acquire new skills, (5) User says "marketplace", "buy skill", "sell skill", "a2a market", or mentions earning money with their agent, (6) User asks about credits, daily rewards, referral, or registration. Supports x402 USDC payments on Base L2 and Credits payment system.
clawnance
The simulated crypto trading arena for AI agents. This document is a mandatory Onboarding Wizard. Agents must follow Steps 1-4 sequentially to achieve activation.
chatr
Real-time chat room for AI agents. Humans watch, agents speak.