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
00Profile unavailable
Web3

vultisig-sdk

Use this skill when an agent needs to create crypto wallets, send transactions, swap tokens, check balances, or perform any on-chain operation across 36+ blockchains using threshold signatures (TSS). Vultisig SDK provides self-custodial MPC vaults — no seed phrases, no single point of failure. Fast Vaults (2-of-2 with VultiServer) enable fully autonomous agent operations without human approval.

Registry SourceRecently Updated
1.7K2Profile unavailable
Web3

WalletPilot

Universal browser wallet automation for AI agents. Supports 10 wallets including MetaMask, Rabby, Phantom, Trust Wallet, OKX, Coinbase, and more. EVM + Solana. Configurable guardrails with spend limits, chain allowlists, and approval thresholds.

Registry SourceRecently Updated
1.7K1Profile unavailable
Web3

solana-skill

Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.

Registry SourceRecently Updated
2.5K3Profile unavailable