Claim Prize
POST/prizes/claim
Claims 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
- application/json
Body
required
signature stringrequired
The Solana transaction signature for the 2 YAK payment
wallet stringrequired
The wallet address that sent the transaction
Responses
- 200
- 400
- 500
Success - Prize claimed
- application/json
- Schema
- Example (from schema)
Schema
prize_id stringrequired
The unique identifier of the prize won
prize_name stringrequired
The name of the prize won
wallet stringrequired
The wallet address that claimed the prize
prize_type string
The type of prize (e.g., "coin_airdrop", "download")
action_data
object
Prize-specific action data (e.g., redeem code/URL for coin airdrops, download URL for downloads)
property name* any
Prize-specific action data (e.g., redeem code/URL for coin airdrops, download URL for downloads)
{
"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"
}
}
Bad request - Transaction not found, invalid, or signature already used
Server error
Loading...