> For the complete documentation index, see [llms.txt](https://docs.prophetmarket.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prophetmarket.ai/get-started/api/resolution-data.md).

# Resolution Data

Prophet uses AI consensus for market resolution. The API exposes both the final outcome and the underlying voting data.

## Resolution Event

The `resolutionEvent` query provides the final outcome and payout details.

```graphql
query Resolution($marketId: String!) {
  resolutionEvent(marketId: $marketId) {
    outcome
    resolvedAt
    evidenceUrl
    totalPayoutCents
    cancelledOrdersCount
  }
}
```

The `outcome` will be `RESOLVED_YES`, `RESOLVED_NO`, or `CANCELLED`.

## Transparency Record

The `resolutionTransparency` query exposes the AI consensus data.

```graphql
query Transparency($marketId: String!) {
  resolutionTransparency(marketId: $marketId) {
    consensusConfidence
    modelVotes {
      modelName
      vote
      confidence
      reasoning
    }
    voteBreakdown { yes no uncertain }
    ipfsCid
    blockchainTxHash
  }
}
```

* **`modelVotes`:** The individual votes and reasoning from each AI model in the consensus group.
* **`ipfsCid`:** The IPFS content identifier where the resolution proof is permanently stored.
* **`blockchainTxHash`:** The on-chain transaction hash for the settlement.

## Resolution Statuses

A market's `status` transitions through several states during resolution:

1. `PENDING_RESOLUTION`: The market has closed and is awaiting AI consensus.
2. `PENDING_BLOCKCHAIN`: Consensus reached, awaiting on-chain settlement.
3. `RESOLVED_YES` / `RESOLVED_NO`: Successfully resolved and settled.
4. `RESOLVED_UNCERTAIN`: The AI models could not reach consensus. Human review may be required.
5. `RESOLUTION_FAILED`: A technical failure occurred during the resolution process.
6. `CANCELLED`: The market was voided.

Clients should handle all these states, particularly `RESOLVED_UNCERTAIN` and `RESOLUTION_FAILED`, to properly inform users of delays.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prophetmarket.ai/get-started/api/resolution-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
