# Market Resolution

Darkbet uses a **multi-layer verification system** to resolve prediction markets securely and transparently.\
For crypto-based markets, resolution is driven by **on-chain data**, **exchange price feeds**, and **AI-assisted verification** to ensure accuracy, speed, and reliability.

#### Layer 1: Price Verification

The first layer verifies real-time cryptocurrency price data from multiple exchanges.\
This includes:

* Aggregated price feeds from leading exchanges and oracles
* On-chain transaction and block data cross-checks
* Instant resolution for straightforward price-based markets

This ensures that outcomes like “BTC > $70,000 by expiry” are settled automatically and verifiably using live, trusted data.

### Layer 2: Data Aggregation

Next, DarkBet’s data engine collects additional market information using **crypto-specific APIs**.\
This includes:

* Price feeds and volume data
* Historical candles and volatility indexes
* Blockchain-level signals such as transaction counts and block confirmations

These inputs strengthen the context for AI analysis and help validate edge cases where price movements are unclear or disputed.

### Layer 3: AI Analysis

In the final layer, DarkBet’s AI agent evaluates all gathered data to determine the official outcome.\
The AI performs:

* Comprehensive analysis of all available market evidence
* Cross-verification across independent crypto data sources
* Consensus building when multiple feeds show discrepancies
* Generation of a detailed reasoning log for transparency

The result is an autonomous, verifiable, and explainable decision that ensures each resolution is backed by data, not opinion.

### Crypto Data Sources & APIs

Our AI system integrates with 25+ crypto APIs and data sources to ensure accurate and comprehensive resolution.

| Financial Data                                                                                  | Sports Data                                                                                      | News and Events                                                                                |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| <ul><li>CoinGecko API</li><li>Binance API</li><li>Yahoo Finance</li><li>Alpha Vantage</li></ul> | <ul><li>ESPN API</li><li>The Sports DB</li><li>Football Data API</li><li>NBA Stats API</li></ul> | <ul><li>NewsAPI</li><li>Reuters API</li><li>Associated Press</li><li>Government APIs</li></ul> |

#### Resolution Timeline

1. **Market Expiration** — The prediction market reaches its expiry time and closes to new bets.
2. **Data Collection (1–2 minutes)** — The system fetches all relevant data from configured APIs and on-chain sources.
3. **AI Analysis (2–3 minutes)** — AI processes and cross-verifies the data to reach a final outcome.
4. **Resolution & Payouts** — The result is recorded on-chain, and eligible participants can claim their winnings immediately.

> All crypto resolution decisions are recorded on-chain with detailed reasoning. Users can verify the crypto data sources used and the AI's decision-making process for complete transparency.
