Claim raffle prize
Builds the transaction that sends a drawn raffle's prize to its winner. Anyone can sign as authority; the prize always goes to the winner. Fails if the raffle hasn't been drawn.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Transfers a drawn raffle's prize to its winner.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/raffles/claim-prize" \ -H "Content-Type: application/json" \ -d '{ "authority": "string", "raffleKey": "string" }'{ "result": { "tx": "string" }}Cancel raffle POST
Builds a transaction cancelling raffle raffleKey and returning the prize to creator, who must have created it. Tickets already sold become refundable.
Claim raffle proceeds POST
Builds the transaction that pays a finished raffle's ticket revenue to creator, who signs. The marketplace fee and creators' royalties are deducted. The prize is delivered separately, with POST /v2/tx/raffles/claim-prize.