mallow docs

Cancel raffle

POST
/v2/tx/raffles/cancel

Builds a transaction cancelling the raffle at raffleKey and returning the prize to creator.

Only the wallet that created the raffle may cancel it. Tickets already sold are refundable to their buyers once the cancellation confirms.

Authorization

ApiKeyAuth
x-api-key<token>

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"  }}