Declare the winner of a matched bet
cURL
curl --request POST \ --url https://api.example.com/betting/{id}/resolve \ --header 'Content-Type: application/json' \ --data ' { "winner": "<string>" } '
"FOR"
"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" }'
{ "id": "uuid", "status": "RESOLVED", "winner": "FOR", "payout": { "agentId": "winner-uuid", "amount": "95.00" }, "fees": "5.00" }
manual