Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agenticbets

БесплатноЗапускает вложенные скриптыНе проверен

Place prediction bets on token prices on Base via AgenticBets. Use when the user wants to bet UP or DOWN on whether a token price will go up or down, check…

BankrBotот BankrBot★ 1 223 звезды на GitHub

Об этом скилле

AgenticBets

Prediction markets on Base. Bet UP or DOWN on token prices with USDC.

When To Use

Use AgenticBets when the user wants to:

  • Bet on whether a token price goes up or down (e.g., "bet $5 UP on AGBETS")
  • Check prediction market odds (e.g., "what are the odds on AGBETS?")
  • See which markets are open (e.g., "what prediction markets can I bet on?")
  • Claim winnings from settled rounds
  • Check their bet status or claimable winnings

Prerequisites

Bankr CLI

Install the Bankr CLI and log in to get an API key:

bun install -g @bankr/cli
# or: npm install -g @bankr/cli

Bankr API Key

The scripts read the API key from ~/.bankr/config.json (or $BANKR_CONFIG if set).

Option A: CLI login (recommended)

# Step 1 — send OTP
bankr login email [email protected]

# Step 2 — verify and generate key with write access
bankr login email [email protected] --code 123456 --accept-terms --key-name "AgenticBets" --read-write

Option B: Web login

  1. Visit bankr.bot/api-keys
  2. Sign in with email + OTP
  3. Generate an API key with Wallet API write access enabled

The API key must have write access (walletApiEnabled, not readOnly) to place bets and claim winnings. Read-only keys can still list markets and check odds.

USDC Balance

Make sure your Bankr wallet has USDC on Base before betting. Check with:

bankr wallet portfolio

Quick Start

List Open Markets

What prediction markets are open on AgenticBets?
scripts/agenticbets.py list

Check Odds

What are the odds on AGBETS?
scripts/agenticbets.py odds AGBETS

Place a Bet

Bet $5 UP on AGBETS
scripts/agenticbets.py bet AGBETS up 5

Claim Winnings

Claim my AgenticBets winnings for AGBETS epoch 42
scripts/agenticbets.py claim AGBETS 42

Script Usage

agenticbets.py

Single script that handles all AgenticBets operations. Reads and writes use the Bankr Wallet API.

scripts/agenticbets.py <command> [args...]

Commands:

Command Args Description
list [status] List markets. Status: all, open, locked, settled (default: open)
odds <symbol> Show bull/bear odds and pool size for a market
info <symbol> Detailed market info including contract, epoch, time to lock
bet <symbol> <up|down> <amount> Place a bet. Amount in USDC (e.g., 5 for $5)
claim <symbol> <epoch> [epoch...] Claim winnings for settled epochs
claimable <symbol> <epoch> Check if an epoch is claimable

Environment:

Variable Default Description
BANKR_CONFIG ~/.bankr/config.json Path to Bankr config file containing apiKey

How It Works

Prediction Market Flow

  1. A round opens for a token (e.g., $AGBETS)
  2. Users bet UP (bull — price goes up) or DOWN (bear — price goes down) with USDC
  3. Betting window closes (typically 5 minutes)
  4. Price is locked at close
  5. After the round duration, price is checked again
  6. If price went up → bull wins. If down → bear wins.
  7. Winners split the entire pool proportional to their bet size (minus 3% fee)

Transaction Flow (via Bankr Submit API)

All on-chain transactions go through the Bankr Wallet API:

  1. Script fetches market data from GET https://agenticbets.dev/api/bankr/markets
  2. Script gets wallet address from GET https://api.bankr.bot/wallet/me
  3. For bets:
    • Approve USDC spend: POST https://api.bankr.bot/wallet/submit with ERC20 approve() calldata
    • Place bet: POST https://api.bankr.bot/wallet/submit with bet() calldata
  4. For claims: POST https://api.bankr.bot/wallet/submit with claim() calldata
  5. All transactions use waitForConfirmation: true and include a human-readable description

Bankr Submit API Reference

Endpoint: POST https://api.bankr.bot/wallet/submit

Headers:

X-API-Key: bk_YOUR_API_KEY
Content-Type: application/json

Request body:

{
  "transaction": {
    "to": "0xContractAddress",
    "chainId": 8453,
    "data": "0xCalldata...",
    "value": "0"
  },
  "description": "Place $5 UP bet on AGBETS",
  "waitForConfirmation": true
}

Success response:

{
  "success": true,
  "transactionHash": "0x...",
  "status": "success",
  "blockNumber": "12345678",
  "signer": "0xYourWalletAddress",
  "chainId": 8453
}

Wallet info: GET https://api.bankr.bot/wallet/me returns the wallet address and supported chains.

Contracts

Contract Address Tokens
BankrBetsPrediction V1 0xABADeb002247f2bd908Eeedb32918aEc304A0233 CLAWD, MOLT, WCHAN
BankrBetsPrediction V2 0x2CD785Ba87e0841A8458141bc43d23a56a00557f AGBETS
USDC (Base) 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 6 decimals

Contract Functions

**bet(address _token, uint2

Полный SKILL.md на GitHub

Установить agenticbets в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

catalog.jsonreferences/agent-usage.mdscripts/agenticbets.py

FAQ

Что делает скилл agenticbets?

Place prediction bets on token prices on Base via AgenticBets. Use when the user wants to bet UP or DOWN on whether a token price will go up or down, check prediction market odds, view open betting rounds, or claim winnings from settled rounds. Supports all tokens with active markets on AgenticBets (AGBETS, CLAWD, MOLT, WCHAN, and more). Uses Bankr Submit API to execute bet and claim transactions on Base.

Как установить скилл agenticbets?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agenticbets запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить agenticbets с