[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76ZE47E7F2QQ9KXE052FKSS":3,"skill-same:01M76ZE47E7F2QQ9KXE052FKSS":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M76ZE47E7F2QQ9KXE052FKSS","sports-betting",null,"Place and claim decentralized sports bets on-chain via Pinwin and Azuro: real-time odds, high liquidity, no custody. Fetch prematch and live games from the data-feed, pick a selection, then sign and submit. Use when the user wants to bet on sports with Pinwin, browse games, place a bet, or check or redeem winnings.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskinnynoizze\u002Fsports-betting\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sports-betting\ndescription: \"Place and claim decentralized sports bets on-chain via Pinwin and Azuro: real-time odds, high liquidity, no custody. Fetch prematch and live games from the data-feed, pick a selection, then sign and submit. Use when the user wants to bet on sports with Pinwin, browse games, place a bet, or check or redeem winnings.\"\ncompatibility: \"Requires Node, viem and @azuro-org\u002Fdictionaries (for human-readable market\u002Fselection names). Required env: BETTOR_PRIVATE_KEY (wallet private key; high-sensitivity). Optional env: POLYGON_RPC_URL (Polygon RPC); if unset, use default RPC(s) in references\u002Fpolygon.md.\"\nhomepage: \"https:\u002F\u002Fgithub.com\u002Fskinnynoizze\u002Fpinwin-agent\"\ndisable-model-invocation: true\nmetadata: {\"openclaw\":{\"requires\":{\"bins\":[\"node\"],\"env\":[\"BETTOR_PRIVATE_KEY\"]},\"primaryEnv\":\"BETTOR_PRIVATE_KEY\"}}\n---\n\n# Sports betting (Pinwin)\n\nPlace and claim **decentralized** sports bets on **Polygon** via [Pinwin](https:\u002F\u002Fpinwin.xyz) and Azuro, with on-chain execution. The agent fetches **prematch and live** games from the data-feed, you pick a selection, then it calls Pinwin, signs (and optionally approves USDT), and submits.\n\n**Invocation:** This skill is **invocation-only**: the assistant will not use it unless you explicitly ask (e.g. “place a bet with Pinwin”) or use the slash command. That avoids accidental bets.\n\n---\n\n## How to use (OpenClaw)\n\n- **Invoke:** Use the slash command **`\u002Fsports_betting`** (or **`\u002Fskill sports-betting`**) and optionally add your request, e.g. `\u002Fsports_betting place 5 USDT on the first Premier League game` or `\u002Fsports_betting show my bets`.\n- **Versatility:** The assistant should **ask you** for preferences when not specified: how many games to fetch (`first`), order (`turnover` vs `startsAt`), sport\u002Fcountry\u002Fleague filters, and **which selection you want**. It should **not** suggest or pick a bet unless you explicitly ask for a suggestion (meaningful suggestions would require external data, e.g. news or stats, and could be a separate skill).\n\n---\n\n## When to use\n\n- User wants to **place a bet** on a game (prematch or live): fetch games → choose a selection → call Pinwin `\u002Fagent\u002Fbet` → approve token if needed → sign EIP-712 → POST signature to returned `apiUrl`.\n- User wants to **check bet status** (pending \u002F resolved \u002F won or lost) or **redeem winnings**: query the bets subgraph for the bettor’s bets (see [Check bet status](#check-bet-status-before-redeem)); when a bet has `isRedeemable && !isRedeemed`, call Pinwin `\u002Fagent\u002Fclaim` with those `betIds` → sign and send the returned transaction with viem.\n\n---\n\n## Prerequisites\n\n### Credentials (required env)\n\n- **BETTOR_PRIVATE_KEY** — Wallet private key (hex) for signing bets and claim transactions. High-sensitivity; do not log or expose. Required for placing and claiming. Use a dedicated betting wallet with minimal funds; do not use your primary wallet.\n\n### Optional\n\n- **POLYGON_RPC_URL** — Polygon RPC endpoint. If unset, the agent uses the default RPC(s) in [references\u002Fpolygon.md](references\u002Fpolygon.md) (e.g. Pocket Network, PublicNode).\n\n### Other\n\n- **@azuro-org\u002Fdictionaries** — required. The subgraph returns only `outcomeId` and odds; this package is the only way to map them to human-readable market and selection names (e.g. \"Total Goals\", \"Over (2.5)\"). See [references\u002Fdictionaries.md](references\u002Fdictionaries.md).\n- **Addresses:** relayer, bet token, native gas token (POL), data-feed URL, and bets subgraph URL are in [references\u002Fpolygon.md](references\u002Fpolygon.md).\n- **Balances:** The agent can use viem to check **POL** (gas) and **USDT** (stake + relayer fee) before placing a bet; if insufficient, inform the user and do not proceed. See [references\u002Fviem.md](references\u002Fviem.md).\n\n---\n\n## Flow (place a bet)\n\n0. **Optional — check balances:** Ensure USDT ≥ stake and POL for gas; exact USDT = stake + payload’s relayerFeeAmount. See [references\u002Fviem.md](references\u002Fviem.md).\n1. **Fetch games** – POST data-feed per [references\u002Fsubgraph.md](references\u002Fsubgraph.md) (state Prematch or Live). Get games with conditions (conditionId, outcomes: outcomeId, currentOdds). Names via [references\u002Fdictionaries.md](references\u002Fdictionaries.md) (`getSelectionName({ outcomeId, withPoint: true })`). Respect first, orderBy, filters or defaults.\n2. **Choose selection** – Pick one (or more for combo) `conditionId` + `outcomeId` from an Active condition. **minOdds:** single = `Math.round(parseFloat(currentOdds) * 1e12)`; combo = product of each selection’s odds in 12-decimal space (e.g. (odds1×1e12 × odds2×1e12) \u002F 1e12).\n3. **Call Pinwin** – `POST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fbet` with JSON body (see [references\u002Fapi.md](references\u002Fapi.md)). Response: `{ \"encoded\": \"\u003Cbase64>\" }`. Decode: `payload = JSON.parse(atob(response.encoded))`.\n4. **Explain to user (before signing)** – Display payload: amount and selections from `signableClientBetData.bets`, relayerFeeAmount, apiUrl, environment, clientData (human-readable names per [references\u002Fdictionaries.md](references\u002Fdictionaries.md)); then a short summary. See [references\u002Fapi.md](references\u002Fapi.md).\n5. **Approval (if needed)** – Check bet token’s `allowance(bettor, relayer)` on Polygon. If &lt; bet amount + relayer fee + 0.2 USDT, sign `approve(relayer, bet amount + relayer fee + 0.2 USDT)` on the bet token. Approval is bounded to this bet plus a small buffer for security; the agent may need to approve again for the next bet. Addresses: [references\u002Fpolygon.md](references\u002Fpolygon.md). Steps: [references\u002Fviem.md](references\u002Fviem.md).\n6. **Verify payload vs user intent** – Amount and selections (from `bets`), **clientData.core** = **claimContract**, relayer from [references\u002Fpolygon.md](references\u002Fpolygon.md) only. See [references\u002Fapi.md](references\u002Fapi.md). If anything does not match, do not sign and inform the user.\n7. **Sign and submit** – Use viem `signTypedData` with `payload.domain`, `payload.types`, `primaryType` (see [references\u002Fapi.md](references\u002Fapi.md)), and `message: payload.signableClientBetData`. Then POST to `payload.apiUrl` with `environment`, `bettor`, `betOwner`, `clientBetData` (= `payload.apiClientBetData`), `bettorSignature`. The **order id is in the POST response**: use `response.id`. If you get an order id, poll until the order settles (see [references\u002Fapi.md](references\u002Fapi.md)): GET `{apiBase}\u002Fbet\u002Forders\u002F{orderId}`. Success = response has `txHash`; failure = `state` is `Rejected` or `Canceled` (use `errorMessage`).\n\n---\n\n## Check bet status (before redeem)\n\nTo know when a bet is **resolved** and whether it **won** or **lost**, and whether the user can **redeem**, query the **bets subgraph** (different from the data-feed). See [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md).\n\n1. **Query bets** – POST a GraphQL query to the bets subgraph URL (Polygon: in [references\u002Fpolygon.md](references\u002Fpolygon.md)). Query `v3Bets` with `where: { bettor: \"\u003Cbettor address>\" }` (address in lowercase). To fetch only bets that can be claimed, add **`isRedeemable: true`** to the where clause (see [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md)). Request at least: `betId`, `status`, `result`, `isRedeemable`, `isRedeemed`, `amount`, `payout`.\n2. **Interpret** – **status** = `Accepted` (pending) | `Resolved` (settled) | `Canceled`. When **status === Resolved**, **result** = `Won` or `Lost`. When **isRedeemable === true** and **isRedeemed === false**, the user can claim; collect those bets’ **betId** values for the claim flow.\n\n---\n\n## Flow (claim)\n\nOnly for bets that are resolved (or canceled) and have **isRedeemable** true and **isRedeemed** false; get **betIds** from the bets subgraph (see [Check bet status](#check-bet-status-before-redeem)).\n\n1. **Call Pinwin** – `POST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fclaim` with `betIds` (array of on-chain bet ids) and `chain: \"polygon\"`. Decode the response `encoded` payload. **Explain to the user in human-readable terms** what they are sending: e.g. claiming winnings for bet IDs X, Y; the transaction will go to the Azuro ClientCore contract on Polygon; no value (ETH\u002FPOL) is sent. Display the **full** decoded claim payload (to, chainId, value, and any other keys returned) for transparency.\n2. **Verify claim contract** – Ensure `payload.to` (lowercase) equals the documented **claimContract** (ClientCore) for Polygon in [references\u002Fpolygon.md](references\u002Fpolygon.md). This is the redeem contract for won\u002Fcanceled bets, not the Cashout (early-exit) contract. If it does not match, do not send the tx and report the mismatch.\n3. **Send tx** – Use viem `sendTransaction` with `{ to: payload.to, data: payload.data, value: 0n, chainId: payload.chainId }`. Wait for receipt. Details: [references\u002Fviem.md](references\u002Fviem.md).\n\n---\n\n## Example (place a single bet)\n\nAfter fetching games and choosing one outcome:\n\n```json\nPOST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fbet\n{ \"amount\": 1000000, \"minOdds\": 1500000000000, \"chain\": \"polygon\", \"selections\": [{ \"conditionId\": \"\u003Cfrom data-feed>\", \"outcomeId\": 21 }] }\n```\n\nDecode `response.encoded`, sign `payload.signableClientBetData` with viem `signTypedData`, then POST to `payload.apiUrl` with `clientBetData` and `bettorSignature`.\n\n## Example (claim)\n\nGet **betIds** from the bets subgraph (e.g. query with `isRedeemable: true`). Then:\n\n```json\nPOST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fclaim\n{ \"betIds\": [215843], \"chain\": \"polygon\" }\n```\n\nDecode `response.encoded` → `payload`. Display payload to the user; verify `payload.to` equals the claimContract (ClientCore) in [references\u002Fpolygon.md](references\u002Fpolygon.md). Then send tx with viem: `sendTransaction({ to: payload.to, data: payload.data, value: 0n, chainId: payload.chainId })`. Wait for receipt.\n\n---\n\n## Tools\n\n| Step | Tool | Purpose |\n|------|------|---------|\n| Games | Data-feed subgraph (GraphQL) | Get games, conditions, outcomes, odds |\n| Bet status | Bets subgraph (GraphQL) | Get bettor’s bets: status (Accepted\u002FResolved\u002FCanceled), result (Won\u002FLost), isRedeemable, betId |\n| Names | @azuro-org\u002Fdictionaries (required) | Map outcomeId → human-readable market\u002Fselection names; only way to get labels from subgraph data. |\n| Bet\u002Fclaim | Pinwin API | Get encoded payload and apiUrl |\n| Chain | viem + RPC | getBalance (POL), readContract (allowance, balanceOf USDT), sendTransaction (approve, claim), signTypedData (bet) |\n\n**Required packages:** `npm install viem @azuro-org\u002Fdictionaries`. Setup and chain calls: [references\u002Fviem.md](references\u002Fviem.md). Dictionaries usage: [references\u002Fdictionaries.md](references\u002Fdictionaries.md).\n\n---\n\n## Errors\n\n- **Pinwin 4xx\u002F5xx:** read `error` or `message` in the response body.\n- **Subgraph:** check both HTTP status and `data.errors` in the JSON body (GraphQL can return 200 with `data.errors`).\n- **Chain:** tx reverted, insufficient funds — report tx hash.\n\n---\n\n## Reference files\n\nLoad these when you need full request\u002Fresponse shapes, queries, or addresses:\n\n- [references\u002Fapi.md](references\u002Fapi.md) – Pinwin POST \u002Fagent\u002Fbet and \u002Fagent\u002Fclaim (request, response, decoded payload).\n- [references\u002Fsubgraph.md](references\u002Fsubgraph.md) – Data-feed URL, canonical GraphQL query, example variables, filtering, response shape.\n- [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md) – Bets subgraph URL, query for bettor’s bets, status\u002Fresult\u002FisRedeemable, betId for claim.\n- [references\u002Fdictionaries.md](references\u002Fdictionaries.md) – @azuro-org\u002Fdictionaries (getMarketName, getSelectionName; use withPoint: true for selection lines).\n- [references\u002Fpolygon.md](references\u002Fpolygon.md) – Polygon data-feed URL, bets subgraph URL, native gas token (POL), relayer, betToken (USDT), environment.\n- [references\u002Fviem.md](references\u002Fviem.md) – viem install, setup, getBalance (POL), balanceOf (USDT), allowance, approve, signTypedData, claim tx.\n","# Sports betting (Pinwin)\n\nPlace and claim **decentralized** sports bets on **Polygon** via [Pinwin](https:\u002F\u002Fpinwin.xyz) and Azuro, with on-chain execution. The agent fetches **prematch and live** games from the data-feed, you pick a selection, then it calls Pinwin, signs (and optionally approves USDT), and submits.\n\n**Invocation:** This skill is **invocation-only**: the assistant will not use it unless you explicitly ask (e.g. “place a bet with Pinwin”) or use the slash command. That avoids accidental bets.\n\n---\n\n## How to use (OpenClaw)\n\n- **Invoke:** Use the slash command **`\u002Fsports_betting`** (or **`\u002Fskill sports-betting`**) and optionally add your request, e.g. `\u002Fsports_betting place 5 USDT on the first Premier League game` or `\u002Fsports_betting show my bets`.\n- **Versatility:** The assistant should **ask you** for preferences when not specified: how many games to fetch (`first`), order (`turnover` vs `startsAt`), sport\u002Fcountry\u002Fleague filters, and **which selection you want**. It should **not** suggest or pick a bet unless you explicitly ask for a suggestion (meaningful suggestions would require external data, e.g. news or stats, and could be a separate skill).\n\n---\n\n## When to use\n\n- User wants to **place a bet** on a game (prematch or live): fetch games → choose a selection → call Pinwin `\u002Fagent\u002Fbet` → approve token if needed → sign EIP-712 → POST signature to returned `apiUrl`.\n- User wants to **check bet status** (pending \u002F resolved \u002F won or lost) or **redeem winnings**: query the bets subgraph for the bettor’s bets (see [Check bet status](#check-bet-status-before-redeem)); when a bet has `isRedeemable && !isRedeemed`, call Pinwin `\u002Fagent\u002Fclaim` with those `betIds` → sign and send the returned transaction with viem.\n\n---\n\n## Prerequisites\n\n### Credentials (required env)\n\n- **BETTOR_PRIVATE_KEY** — Wallet private key (hex) for signing bets and claim transactions. High-sensitivity; do not log or expose. Required for placing and claiming. Use a dedicated betting wallet with minimal funds; do not use your primary wallet.\n\n### Optional\n\n- **POLYGON_RPC_URL** — Polygon RPC endpoint. If unset, the agent uses the default RPC(s) in [references\u002Fpolygon.md](references\u002Fpolygon.md) (e.g. Pocket Network, PublicNode).\n\n### Other\n\n- **@azuro-org\u002Fdictionaries** — required. The subgraph returns only `outcomeId` and odds; this package is the only way to map them to human-readable market and selection names (e.g. \"Total Goals\", \"Over (2.5)\"). See [references\u002Fdictionaries.md](references\u002Fdictionaries.md).\n- **Addresses:** relayer, bet token, native gas token (POL), data-feed URL, and bets subgraph URL are in [references\u002Fpolygon.md](references\u002Fpolygon.md).\n- **Balances:** The agent can use viem to check **POL** (gas) and **USDT** (stake + relayer fee) before placing a bet; if insufficient, inform the user and do not proceed. See [references\u002Fviem.md](references\u002Fviem.md).\n\n---\n\n## Flow (place a bet)\n\n0. **Optional — check balances:** Ensure USDT ≥ stake and POL for gas; exact USDT = stake + payload’s relayerFeeAmount. See [references\u002Fviem.md](references\u002Fviem.md).\n1. **Fetch games** – POST data-feed per [references\u002Fsubgraph.md](references\u002Fsubgraph.md) (state Prematch or Live). Get games with conditions (conditionId, outcomes: outcomeId, currentOdds). Names via [references\u002Fdictionaries.md](references\u002Fdictionaries.md) (`getSelectionName({ outcomeId, withPoint: true })`). Respect first, orderBy, filters or defaults.\n2. **Choose selection** – Pick one (or more for combo) `conditionId` + `outcomeId` from an Active condition. **minOdds:** single = `Math.round(parseFloat(currentOdds) * 1e12)`; combo = product of each selection’s odds in 12-decimal space (e.g. (odds1×1e12 × odds2×1e12) \u002F 1e12).\n3. **Call Pinwin** – `POST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fbet` with JSON body (see [references\u002Fapi.md](references\u002Fapi.md)). Response: `{ \"encoded\": \"\u003Cbase64>\" }`. Decode: `payload = JSON.parse(atob(response.encoded))`.\n4. **Explain to user (before signing)** – Display payload: amount and selections from `signableClientBetData.bets`, relayerFeeAmount, apiUrl, environment, clientData (human-readable names per [references\u002Fdictionaries.md](references\u002Fdictionaries.md)); then a short summary. See [references\u002Fapi.md](references\u002Fapi.md).\n5. **Approval (if needed)** – Check bet token’s `allowance(bettor, relayer)` on Polygon. If &lt; bet amount + relayer fee + 0.2 USDT, sign `approve(relayer, bet amount + relayer fee + 0.2 USDT)` on the bet token. Approval is bounded to this bet plus a small buffer for security; the agent may need to approve again for the next bet. Addresses: [references\u002Fpolygon.md](references\u002Fpolygon.md). Steps: [references\u002Fviem.md](references\u002Fviem.md).\n6. **Verify payload vs user intent** – Amount and selections (from `bets`), **clientData.core** = **claimContract**, relayer from [references\u002Fpolygon.md](references\u002Fpolygon.md) only. See [references\u002Fapi.md](references\u002Fapi.md). If anything does not match, do not sign and inform the user.\n7. **Sign and submit** – Use viem `signTypedData` with `payload.domain`, `payload.types`, `primaryType` (see [references\u002Fapi.md](references\u002Fapi.md)), and `message: payload.signableClientBetData`. Then POST to `payload.apiUrl` with `environment`, `bettor`, `betOwner`, `clientBetData` (= `payload.apiClientBetData`), `bettorSignature`. The **order id is in the POST response**: use `response.id`. If you get an order id, poll until the order settles (see [references\u002Fapi.md](references\u002Fapi.md)): GET `{apiBase}\u002Fbet\u002Forders\u002F{orderId}`. Success = response has `txHash`; failure = `state` is `Rejected` or `Canceled` (use `errorMessage`).\n\n---\n\n## Check bet status (before redeem)\n\nTo know when a bet is **resolved** and whether it **won** or **lost**, and whether the user can **redeem**, query the **bets subgraph** (different from the data-feed). See [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md).\n\n1. **Query bets** – POST a GraphQL query to the bets subgraph URL (Polygon: in [references\u002Fpolygon.md](references\u002Fpolygon.md)). Query `v3Bets` with `where: { bettor: \"\u003Cbettor address>\" }` (address in lowercase). To fetch only bets that can be claimed, add **`isRedeemable: true`** to the where clause (see [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md)). Request at least: `betId`, `status`, `result`, `isRedeemable`, `isRedeemed`, `amount`, `payout`.\n2. **Interpret** – **status** = `Accepted` (pending) | `Resolved` (settled) | `Canceled`. When **status === Resolved**, **result** = `Won` or `Lost`. When **isRedeemable === true** and **isRedeemed === false**, the user can claim; collect those bets’ **betId** values for the claim flow.\n\n---\n\n## Flow (claim)\n\nOnly for bets that are resolved (or canceled) and have **isRedeemable** true and **isRedeemed** false; get **betIds** from the bets subgraph (see [Check bet status](#check-bet-status-before-redeem)).\n\n1. **Call Pinwin** – `POST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fclaim` with `betIds` (array of on-chain bet ids) and `chain: \"polygon\"`. Decode the response `encoded` payload. **Explain to the user in human-readable terms** what they are sending: e.g. claiming winnings for bet IDs X, Y; the transaction will go to the Azuro ClientCore contract on Polygon; no value (ETH\u002FPOL) is sent. Display the **full** decoded claim payload (to, chainId, value, and any other keys returned) for transparency.\n2. **Verify claim contract** – Ensure `payload.to` (lowercase) equals the documented **claimContract** (ClientCore) for Polygon in [references\u002Fpolygon.md](references\u002Fpolygon.md). This is the redeem contract for won\u002Fcanceled bets, not the Cashout (early-exit) contract. If it does not match, do not send the tx and report the mismatch.\n3. **Send tx** – Use viem `sendTransaction` with `{ to: payload.to, data: payload.data, value: 0n, chainId: payload.chainId }`. Wait for receipt. Details: [references\u002Fviem.md](references\u002Fviem.md).\n\n---\n\n## Example (place a single bet)\n\nAfter fetching games and choosing one outcome:\n\n```json\nPOST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fbet\n{ \"amount\": 1000000, \"minOdds\": 1500000000000, \"chain\": \"polygon\", \"selections\": [{ \"conditionId\": \"\u003Cfrom data-feed>\", \"outcomeId\": 21 }] }\n```\n\nDecode `response.encoded`, sign `payload.signableClientBetData` with viem `signTypedData`, then POST to `payload.apiUrl` with `clientBetData` and `bettorSignature`.\n\n## Example (claim)\n\nGet **betIds** from the bets subgraph (e.g. query with `isRedeemable: true`). Then:\n\n```json\nPOST https:\u002F\u002Fapi.pinwin.xyz\u002Fagent\u002Fclaim\n{ \"betIds\": [215843], \"chain\": \"polygon\" }\n```\n\nDecode `response.encoded` → `payload`. Display payload to the user; verify `payload.to` equals the claimContract (ClientCore) in [references\u002Fpolygon.md](references\u002Fpolygon.md). Then send tx with viem: `sendTransaction({ to: payload.to, data: payload.data, value: 0n, chainId: payload.chainId })`. Wait for receipt.\n\n---\n\n## Tools\n\n| Step | Tool | Purpose |\n|------|------|---------|\n| Games | Data-feed subgraph (GraphQL) | Get games, conditions, outcomes, odds |\n| Bet status | Bets subgraph (GraphQL) | Get bettor’s bets: status (Accepted\u002FResolved\u002FCanceled), result (Won\u002FLost), isRedeemable, betId |\n| Names | @azuro-org\u002Fdictionaries (required) | Map outcomeId → human-readable market\u002Fselection names; only way to get labels from subgraph data. |\n| Bet\u002Fclaim | Pinwin API | Get encoded payload and apiUrl |\n| Chain | viem + RPC | getBalance (POL), readContract (allowance, balanceOf USDT), sendTransaction (approve, claim), signTypedData (bet) |\n\n**Required packages:** `npm install viem @azuro-org\u002Fdictionaries`. Setup and chain calls: [references\u002Fviem.md](references\u002Fviem.md). Dictionaries usage: [references\u002Fdictionaries.md](references\u002Fdictionaries.md).\n\n---\n\n## Errors\n\n- **Pinwin 4xx\u002F5xx:** read `error` or `message` in the response body.\n- **Subgraph:** check both HTTP status and `data.errors` in the JSON body (GraphQL can return 200 with `data.errors`).\n- **Chain:** tx reverted, insufficient funds — report tx hash.\n\n---\n\n## Reference files\n\nLoad these when you need full request\u002Fresponse shapes, queries, or addresses:\n\n- [references\u002Fapi.md](references\u002Fapi.md) – Pinwin POST \u002Fagent\u002Fbet and \u002Fagent\u002Fclaim (request, response, decoded payload).\n- [references\u002Fsubgraph.md](references\u002Fsubgraph.md) – Data-feed URL, canonical GraphQL query, example variables, filtering, response shape.\n- [references\u002Fbets-subgraph.md](references\u002Fbets-subgraph.md) – Bets subgraph URL, query for bettor’s bets, status\u002Fresult\u002FisRedeemable, betId for claim.\n- [references\u002Fdictionaries.md](references\u002Fdictionaries.md) – @azuro-org\u002Fdictionaries (getMarketName, getSelectionName; use withPoint: true for selection lines).\n- [references\u002Fpolygon.md](references\u002Fpolygon.md) – Polygon data-feed URL, bets subgraph URL, native gas token (POL), relayer, betToken (USDT), environment.\n- [references\u002Fviem.md](references\u002Fviem.md) – viem install, setup, getBalance (POL), balanceOf (USDT), allowance, approve, signTypedData, claim tx.\n",{"name":5,"homepage":24,"metadata":25,"description":7,"compatibility":32,"disable-model-invocation":33},"https:\u002F\u002Fgithub.com\u002Fskinnynoizze\u002Fpinwin-agent",{"openclaw":26},{"requires":27,"primaryEnv":29},{"env":28,"bins":30},[29],"BETTOR_PRIVATE_KEY",[31],"node","Requires Node, viem and @azuro-org\u002Fdictionaries (for human-readable market\u002Fselection names). Required env: BETTOR_PRIVATE_KEY (wallet private key; high-sensitivity). Optional env: POLYGON_RPC_URL (Polygon RPC); if unset, use default RPC(s) in references\u002Fpolygon.md.",true,"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fskinnynoizze\u002Fsports-betting",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":33},[45,48,51],{"tool":46,"command":47},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill sports-betting",{"tool":49,"command":50},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill sports-betting",{"tool":52,"command":53},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill sports-betting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskinnynoizze\u002Fsports-betting\u002FSKILL.md",[],[57,65,72,79,86,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":64},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":64},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":64},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":64},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":64},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":64},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]