baozi-claw

Complete Solana prediction markets skill for Baozi — list markets, get odds, place bets, claim winnings

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "baozi-claw" with this command: npx skills add marcusfranca12/baoziclaw

BaoziClaw

BaoziClaw is a comprehensive OpenClaw skill that provides full access to Baozi prediction markets on Solana. Agents can browse markets, analyze odds, place bets, manage portfolios, and claim winnings — all through natural language.

Features

  • Market Discovery: List active markets with filters (hot, new, trending)
  • Odds Analysis: Get real-time probabilities and pool sizes
  • Betting: Place SOL bets on boolean or race outcomes
  • Portfolio Management: Check positions for any wallet
  • Winnings Claim: Auto-claim resolved market payouts
  • Market Creation: Create new Lab markets (creator profile required)

Tools

ToolDescription
list-marketsBrowse active prediction markets
get-oddsGet odds, pools, and implied probabilities
place-betPlace a bet on any market outcome
get-portfolioView positions for a wallet
claim-winningsClaim from resolved markets
create-marketCreate a new Lab market

Installation

clawhub install baozi-claw

---

## 🔨 Agora recrie o index.ts com mais tools:

```bash
cat > index.ts << 'EOF'
import { exec } from 'child_process';
import { promisify } from 'util';

const execAsync = promisify(exec);

async function callBaoziMCP(toolName: string, args: any = {}) {
  const command = `npx -y @baozi.bet/mcp-server --tool ${toolName} --args '${JSON.stringify(args)}'`;
  try {
    const { stdout, stderr } = await execAsync(command);
    if (stderr) console.error('Stderr:', stderr);
    return JSON.parse(stdout);
  } catch (error) {
    console.error(`Error calling ${toolName}:`, error);
    throw error;
  }
}

export const tools = [
  {
    name: 'list-markets',
    description: 'List active prediction markets on Baozi with optional filters (layer, status, query)',
    parameters: { type: 'object', properties: { layer: { type: 'string' }, status: { type: 'string' }, query: { type: 'string' } } },
    handler: async (args: any) => callBaoziMCP('list_markets', args)
  },
  {
    name: 'get-odds',
    description: 'Get odds, implied probabilities, and pool sizes for a specific market',
    parameters: { type: 'object', properties: { marketId: { type: 'string' } }, required: ['marketId'] },
    handler: async (args: any) => callBaoziMCP('get_quote', { market: args.marketId })
  },
  {
    name: 'place-bet',
    description: 'Place a bet on a market outcome using SOL',
    parameters: { type: 'object', properties: { marketId: { type: 'string' }, outcome: { type: 'boolean' }, amount: { type: 'number' } }, required: ['marketId', 'outcome', 'amount'] },
    handler: async (args: any) => callBaoziMCP('build_bet_transaction', args)
  },
  {
    name: 'get-portfolio',
    description: 'View all positions and bets for a wallet address',
    parameters: { type: 'object', properties: { wallet: { type: 'string' } }, required: ['wallet'] },
    handler: async (args: any) => callBaoziMCP('get_portfolio', { wallet: args.wallet })
  },
  {
    name: 'claim-winnings',
    description: 'Claim SOL winnings from resolved markets',
    parameters: { type: 'object', properties: { marketId: { type: 'string' } }, required: ['marketId'] },
    handler: async (args: any) => callBaoziMCP('build_claim_transaction', { market: args.marketId })
  }
];

console.log('✅ BaoziClaw:', tools.length, 'prediction market tools loaded');

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

BaoziClaw

Complete Solana prediction markets skill for Baozi — list markets, get odds, place bets, claim winnings

Registry SourceRecently Updated
550Profile unavailable
Web3

Solana Token Monitor

Monitor any Solana token 24/7 using DexScreener. Get alerts for price moves, whale activity, volume spikes, liquidity changes, and market cap milestones. Bui...

Registry SourceRecently Updated
1730Profile unavailable
Web3

Claw-Net

Ask a question in plain English, get data from 13,000+ APIs in one call. Crypto prices, social data, market intelligence. Every response is cryptographically...

Registry SourceRecently Updated
3781Profile unavailable
Web3

Chainstream Defi

[FINANCIAL EXECUTION] Execute irreversible on-chain DeFi operations via CLI and MCP tools. Use when user wants to swap tokens, create tokens on launchpad, si...

Registry SourceRecently Updated
5600Profile unavailable