تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

sports-betting

بواسطة skinnynoizze

Browser & Automation
553التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Place and claim decentralized sports bets on-chain via Pinwin and Azuro: real-time odds, high liquidity, no custody.

الوصف

ما الذي تفعله هذه المهارة

Places and claims decentralized sports bets on Polygon via Pinwin and Azuro. Fetches prematch and live game odds from the Azuro data-feed, lets you pick a selection, then signs and submits the transaction on-chain. Invocation-only: the assistant will not act unless explicitly asked.

Bets execute on-chain with no custodian, so funds only move when you sign a transaction yourself.

متى تستخدمها

  • Placing a USDT bet on a Premier League match before kickoff
  • Checking the status of a previously placed bet
  • Redeeming winnings from a resolved or canceled bet
  • Browsing live game odds across multiple sports and leagues
  • Placing a combo bet across multiple game outcomes

مثال على سير العمل

الإدخال

User asks: Place 5 USDT on the first Premier League game

الوكيل
  1. 1

    Fetches prematch games from the Azuro data-feed subgraph filtered to Premier League

  2. 2

    Maps outcome IDs to human-readable names using @azuro-org/dictionaries and presents options to the user

  3. 3

    Calls Pinwin /agent/bet with the chosen conditionId, outcomeId, amount, and minOdds

  4. 4

    Decodes the encoded payload, displays bet details and relayer fee, checks USDT allowance and approves if needed

  5. 5

    Signs the EIP-712 payload with viem signTypedData, submits to Pinwin, and polls until a transaction hash is returned

الإخراج

Bet confirmed on Polygon with a transaction hash; order ID from Pinwin stored for status checks

المتطلبات

  • BETTOR_PRIVATE_KEY environment variable (Polygon wallet private key for signing bets and claims)
  • POLYGON_RPC_URL environment variable (optional; uses default public RPC if unset)
  • Polygon wallet funded with USDT for stakes and POL for gas fees

التثبيت

clawhub install skinnynoizze/sports-betting

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط