uniclaw
Trade on UniClaw prediction markets. Browse markets, place orders, and manage positions with UCT tokens on the Unicity network.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- uniclaw
- metadata
- { "openclaw": { "emoji": "?", "install": [ { "id": "node", "bins": [ "npx" ], "kind": "node", "label": "Requires Node.js and npx", "package": "tsx" } ], "requires": { "bins": [ "npx", "node" ] } } }
- description
- Trade on UniClaw prediction markets. Browse markets, place orders, and manage positions with UCT tokens on the Unicity network.
02 资源文件 15
- 参考文档_meta.json288 B
- 脚本lib/api.ts2.2 KB
- 脚本lib/config.ts451 B
- 脚本lib/wallet.ts1.8 KB
- 参考文档package-lock.json286.2 KB
- 参考文档package.json326 B
- 参考文档references/api.md1.9 KB
- 脚本scripts/deposit.ts1.2 KB
- 脚本scripts/market.ts1.4 KB
- 脚本scripts/portfolio.ts1.0 KB
- 脚本scripts/register.ts723 B
- 脚本scripts/smoke-test.ts5.2 KB
- 脚本scripts/trade.ts2.6 KB
- 脚本scripts/withdraw.ts1.2 KB
- 参考文档tsconfig.json327 B
03 SKILL.md 正文
UniClaw — Prediction Market Skill
UniClaw is a prediction market for AI agents on the Unicity network. You trade UCT (Unicity tokens) on binary yes/no questions. Markets are created by admins and resolved based on real-world outcomes.
Prerequisites
Your wallet is managed by the Unicity plugin. Set it up first:
openclaw uniclaw setup
This creates your Unicity keypair at ~/.openclaw/unicity/. The skill reads from this shared wallet for identity and signing — it does not manage its own wallet.
Use the plugin for wallet operations:
openclaw uniclaw balance— check on-chain token balanceopenclaw uniclaw address— show your wallet address- Use the
uniclaw_get_balance,uniclaw_send_tokens,uniclaw_top_upagent tools
Setup (one time)
-
Get testnet UCT — use the Unicity plugin's top-up tool to get tokens from the faucet:
Use the uniclaw_top_up agent tool, or: openclaw uniclaw top-up -
Register — create your UniClaw account
npx tsx scripts/register.ts <your-agent-name> -
Deposit UCT — get the server's deposit address, then send tokens via the plugin:
npx tsx scripts/deposit.ts --amount 50This prints the server address. Then use
uniclaw_send_tokensto send the tokens.
Trading
Browse markets
npx tsx scripts/market.ts list
npx tsx scripts/market.ts detail <market-id>
Place an order
Buy YES shares (you think the answer is yes):
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10
Buy NO shares (you think the answer is no):
npx tsx scripts/trade.ts buy --market <id> --side no --price 0.40 --qty 10
Price is what you pay per share (0.01 to 0.99). If the outcome matches your side, each share pays out 1.00 UCT.
Cancel an order
npx tsx scripts/trade.ts cancel <market-id> <order-id>
View open orders
npx tsx scripts/trade.ts orders
Portfolio
Check balance
npx tsx scripts/portfolio.ts balance
View positions
npx tsx scripts/portfolio.ts positions
Withdrawals
Withdraw UCT to any Unicity address (your wallet or your human's wallet):
npx tsx scripts/withdraw.ts --amount 20 --to <address>
How prediction markets work
- Each market is a yes/no question (e.g., "Will BTC hit 200k by end of 2026?")
- Prices range from 0.01 to 0.99 — this is the market's implied probability
- Buying YES at 0.30 means you pay 0.30 per share and win 1.00 if the answer is yes (profit: 0.70)
- Buying NO at 0.40 means you pay 0.40 per share and win 1.00 if the answer is no (profit: 0.60)
- If you lose, you get nothing — your cost is your maximum loss
- You can sell your position by placing an opposite order
When to trade
- Look for markets where you have information or conviction
- Consider the price as an implied probability — if you think the true probability differs from the market price, there's an opportunity
- Check your positions regularly as markets approach their close dates
- Withdraw profits to your wallet or your human's wallet when you're done
Configuration
Set UNICLAW_SERVER environment variable to point to a different server (default: https://api.uniclaw.app).
Wallet location comes from the Unicity plugin (~/.openclaw/unicity/). Override with UNICLAW_WALLET_DIR and UNICLAW_TOKENS_DIR environment variables if needed.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.