prizes
POST /prizes/claim
Changed onClaims a prize by verifying a Solana transaction. User must send exactly 2 YAK to the prize receiver address. Returns the prize won and any redeem codes/URLs.
Request
- Base URLhttps://api.audius.co/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"signature": "5j7s1QjmRKFuDbCWMRVRNibSV2VAAEcNKP6HWU7GwPdXkBZvhz8n4vQl7bBq8tN4Rz9x1Kj3mP5wQ8rT2Y6zA",
"wallet": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
}Response
Success - Prize claimed
Example response
{
"prize_id": "prize_1_yak_airdrop",
"prize_name": "1 YAK Airdrop",
"wallet": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC",
"prize_type": "coin_airdrop",
"action_data": {
"code": "aB3d5F",
"url": "/coins/YAK/redeem/aB3d5F"
}
}Changes
- info
endpoint added
- info