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

# Dispute Votes

> Fetch votes for a specific dispute.

## Get Dispute Votes

Retrieve all votes cast in a dispute.

```
GET /disputes/{market_address}/votes
```

**market\_address** `string` *required*

The market address associated with the dispute.

**limit** `integer` (default: 100)

Number of votes to return.

**offset** `integer` (default: 0)

Offset for pagination.

```bash cURL theme={"dark"}
curl "https://api.orica.markets/disputes/ABC123.../votes?limit=50"
```

```typescript TypeScript theme={"dark"}
const response = await fetch(
  `https://api.orica.markets/disputes/${marketAddress}/votes`
);
const { total_votes, total_weight, votes } = await response.json();
```

### Response

```json theme={"dark"}
{
  "total_votes": 42,
  "total_weight": 15000000000,
  "votes": [
    {
      "market_address": "ABC123...",
      "user_address": "User456...",
      "weight": 5000000000,
      "weight_usdc": 5000.00,
      "timestamp": 1704067200,
      "signature": "5K7x..."
    }
  ]
}
```

### Response Fields

**total\_votes** `number`

Total number of votes cast.

**total\_weight** `number`

Sum of all vote weights (in base units).

**votes** `array`

Array of individual votes.

**Vote Object**

**market\_address** `string`

The market being disputed.

**user\_address** `string`

Voter's wallet address.

**weight** `number`

Vote weight in base units.

**weight\_usdc** `number`

Vote weight in USDC.

**timestamp** `number`

Unix timestamp when vote was cast.

**signature** `string`

Solana transaction signature.

***

## Calculating Threshold

To determine if the dispute threshold has been met:

```typescript theme={"dark"}
const dispute = await fetch(`https://api.orica.markets/disputes/${marketAddress}`).then(r => r.json());

const thresholdPercentage = 50; // 50%
const currentPercentage = dispute.vote_percentage;

if (currentPercentage >= thresholdPercentage) {
  console.log("Dispute threshold met!");
} else {
  console.log(`Need ${thresholdPercentage - currentPercentage}% more votes`);
}
```


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