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★ 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
- Visit bankr.bot/api-keys
- Sign in with email + OTP
- 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
- A round opens for a token (e.g., $AGBETS)
- Users bet UP (bull — price goes up) or DOWN (bear — price goes down) with USDC
- Betting window closes (typically 5 minutes)
- Price is locked at close
- After the round duration, price is checked again
- If price went up → bull wins. If down → bear wins.
- 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:
- Script fetches market data from
GET https://agenticbets.dev/api/bankr/markets - Script gets wallet address from
GET https://api.bankr.bot/wallet/me - For bets:
- Approve USDC spend:
POST https://api.bankr.bot/wallet/submitwith ERC20approve()calldata - Place bet:
POST https://api.bankr.bot/wallet/submitwithbet()calldata
- Approve USDC spend:
- For claims:
POST https://api.bankr.bot/wallet/submitwithclaim()calldata - All transactions use
waitForConfirmation: trueand include a human-readabledescription
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
Установить agenticbets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic