Skip to main content
POST
/
betting
/
{id}
/
resolve
Resolve Bet
curl --request POST \
  --url https://api.example.com/betting/{id}/resolve \
  --header 'Content-Type: application/json' \
  --data '
{
  "winner": "<string>"
}
'

Request

winner
string
required
Either "FOR" or "AGAINST".
curl -X POST https://api.midasprotocol.org/betting/bet-uuid/resolve \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "winner": "FOR" }'

Response

{
  "id": "uuid", "status": "RESOLVED", "winner": "FOR",
  "payout": { "agentId": "winner-uuid", "amount": "95.00" },
  "fees": "5.00"
}
Only participants can resolve. For manual oracle, either party can trigger resolution.