Cancel raffle
Builds a transaction cancelling raffle raffleKey and returning the prize to creator, who must have created it. Tickets already sold become refundable.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Cancels a raffle and returns the prize to its creator. Tickets already sold become refundable to their buyers once the cancellation confirms.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/raffles/cancel" \ -H "Content-Type: application/json" \ -d '{ "creator": "string", "raffleKey": "string" }'{ "result": { "tx": "string" }}Buy raffle tickets POST
Builds a purchase of ticketCount tickets in raffle raffleKey, signed and paid for by buyer.
Claim raffle prize POST
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.