> ## Documentation Index
> Fetch the complete documentation index at: https://blockbet.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# BlockBet Payout Guide: Claim USDC Winnings On-Chain

> Understand how BlockBet calculates USDC payouts, why you must claim manually on-chain, and the exact steps to collect your winnings after a match resolves.

Every BlockBet payout is settled entirely on-chain. When a match resolves, the smart contract records the result and marks winning bets as claimable — but it does **not** push funds to your wallet automatically. You must return to the app and submit a claim transaction. This page explains how your payout is calculated, and walks you through the exact steps to collect it.

## Payout Formula

### Single Bet

```
Payout (USDC) = Stake × Decimal Odds
```

**Example:** $25 stake at odds of 2.10 → **$52.50 payout\*\* (\$27.50 profit)

### Accumulator

```
Payout (USDC) = Stake × (combinedOddsBps ÷ 10000)
```

The contract stores combined odds in **basis points** (integer, no decimals). For example, combined odds of 6.24 are stored as `62400`. The division by 10,000 converts them back to a decimal multiplier at claim time.

**Example:** $10 stake, `combinedOddsBps = 62400` → `10 × (62400 ÷ 10000)` → **$62.40 payout\*\*

All payouts come from the contract's USDC pool, which is funded by losing bets and the protocol reserve. Funds are available to claim the moment the match status reaches `finished` and the result is written on-chain.

## How to Claim Your Winnings

**1. Go to My Bets**

Connect your wallet and navigate to the **My Bets** page. BlockBet scans your on-chain bet history and lists all your singles and accumulators, grouped by status.

**2. Find your won, unclaimed bet**

Look for bets with a **Won** badge and an active **Claim winnings** button. Bets still marked as pending are waiting for their match to finish — you cannot claim early.

**3. Click 'Claim winnings'**

For a **single bet**, BlockBet calls `claimWinnings(matchId)`.\
For an **accumulator**, it calls `claimAccumulator(accId)`.\
MetaMask opens a confirmation prompt showing the transaction details.

**4. Confirm in MetaMask**

Review the gas estimate and click **Confirm**. The transaction is broadcast to Arc Testnet.

**5. Receive your USDC**

Once the transaction confirms, the full payout amount is transferred directly to your wallet address. Your USDC balance in the top navigation bar updates immediately.

> [!WARNING]
>
> Winnings are **not** sent to your wallet automatically. They remain locked in the contract until you submit a claim transaction. There is no expiry enforced by the current contract version, but you should claim promptly — unclaimed funds stay in the pool indefinitely.

## Claim Reference

| Bet type | Contract function | Input |
| - | - | - |
| Single | `claimWinnings(matchId)` | The on-chain match ID of the resolved match |
| Accumulator | `claimAccumulator(accId)` | The accumulator ID assigned when you placed the bet |

> [!NOTE]
>
> You can look up any claim transaction on the Arc Testnet block explorer at [testnet.arcscan.app](https://testnet.arcscan.app) using the transaction hash shown in the My Bets confirmation toast.

## Frequently Asked Questions

> [accordion] Can I claim before the match finishes?
>
> No. The contract only allows a claim once the match is resolved (`finished` status) and a result has been written on-chain. The **Claim winnings** button remains disabled until that condition is met.

> [accordion] What happens if I placed a bet but the match never resolves?
>
> Match resolution is triggered by the BlockBet admin after the simulation completes. If a match appears stuck, check the BlockBet Discord or support channel. All match state is on-chain and verifiable at [testnet.arcscan.app](https://testnet.arcscan.app).

> [accordion] Do I pay gas in USDC?
>
> No. Gas fees on Arc Testnet are paid in the network's native currency, not USDC. Make sure your wallet holds a small amount of Arc Testnet native tokens to cover gas for both the USDC approval and the claim transactions.

> [accordion] Can I see my winnings before claiming?
>
> Yes. The My Bets page calculates and displays your **Potential win** figure for every won, unclaimed bet using the formula `stake × odds`. This figure matches exactly what the contract will transfer to you when you claim.

> [!TIP]
>
> After claiming, refresh your USDC balance or check your wallet's asset list to confirm the funds arrived. The balance shown in the BlockBet header calls `balanceOf` on the USDC contract (`0x3600000000000000000000000000000000000000`) and updates as soon as the claim transaction is mined.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.