Skip to content

feat: add Agentic Bets skill#312

Merged
igoryuzo merged 1 commit intoBankrBot:mainfrom
viraj124:main
Apr 22, 2026
Merged

feat: add Agentic Bets skill#312
igoryuzo merged 1 commit intoBankrBot:mainfrom
viraj124:main

Conversation

@viraj124
Copy link
Copy Markdown
Contributor

@viraj124 viraj124 commented Apr 16, 2026

Summary

Adds AgenticBets skill for placing prediction bets on token prices on Base.

AgenticBets is a binary prediction market on Base:

  • Bet UP or DOWN on token prices with USDC (5-min rounds)
  • Live markets for AGBETS, CLAWD, MOLT, WCHAN, and more Bankr-ecosystem tokens
  • Winners split the pool pro-rata (2.1% total fee — 1.5% treasury / 0.5% creator / 0.1% settler)
  • Transactions go through the Bankr Wallet API (POST /wallet/submit) — no local keys, no custom RPCs
  • Works for any agent: place bets, check odds, list open markets, claim winnings, all via natural language

Prediction → Execute Pattern

AgenticBets slots directly into Bankr's agent workflow:

Markets API (Research)       Bankr Submit (Execute)
──────────────────────      ──────────────────────
Live pool size + odds   →   Approve USDC + bet()
Round status / timing   →   Place UP or DOWN bet
Claimable winnings      →   claim() settled epochs

All on-chain actions are signed by the user's Bankr wallet — no API key management beyond the standard Bankr key.

Files Added

agenticbets/
├── SKILL.md                           # Main skill definition
├── references/
│   └── agent-usage.md                 # Agent guide + Markets API + contract reference
└── scripts/
    └── agenticbets.py                 # CLI for list/odds/info/bet/claim/claimable

Quick Start

# 1. Install Bankr CLI and log in (write-access key required for bets)
bun install -g @bankr/cli
bankr login email you@example.com --read-write

# 2. Use the skill
scripts/agenticbets.py list open             # See open markets
scripts/agenticbets.py odds AGBETS           # Current UP/DOWN split + pool
scripts/agenticbets.py bet AGBETS up 5       # $5 UP bet
scripts/agenticbets.py claim AGBETS 42       # Claim settled epoch

Or just ask the agent: "Bet $5 UP on AGBETS" / "What prediction markets are open?" / "Claim my AGBETS winnings from epoch 5".

Contracts (Base)

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

Links

@igoryuzo igoryuzo merged commit 18e963f into BankrBot:main Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants