prizes

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.

post/prizes/claim

Request body

signaturestring required

The Solana transaction signature for the 2 YAK payment

walletstring required

The wallet address that sent the transaction

Example request

{
  "signature": "5j7s1QjmRKFuDbCWMRVRNibSV2VAAEcNKP6HWU7GwPdXkBZvhz8n4vQl7bBq8tN4Rz9x1Kj3mP5wQ8rT2Y6zA",
  "wallet": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
}

Response

Success - Prize claimed

prize_idstring required

The unique identifier of the prize won

prize_namestring required

The name of the prize won

walletstring required

The wallet address that claimed the prize

prize_typestring

The type of prize (e.g., "coin_airdrop", "download")

action_dataobject

Prize-specific action data (e.g., redeem code/URL for coin airdrops, download URL for downloads)

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

No recorded changes to this endpoint across all 1 revision of this API.