Draw a Gumball
Builds the buyer's draw transactions. Have the buyer sign them, then post them to POST /v1/sendDrawGumballTxs/{gumballKey}. mallow has to co-sign them, so don't send them yourself.
When paying with a swapQuote, the response may contain only a swapTx. Send it, wait for confirmation, then call this endpoint again without swapQuote.
Authorization
ApiKeyAuth In: header
Path Parameters
Address of the gumball machine (base58).
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/getDrawGumballTxs/string" \ -H "Content-Type: application/json" \ -d '{ "buyer": "string" }'{ "result": { "txs": [ "string" ], "swapTx": "string", "swapTxReason": "size" }}Bid or buy POST
Generates a base64-encoded VersionedTransaction for bidding on an auction or buying from the marketplace. The transaction must be signed and sent by the buyer.
Send signed gumball draws POST
Co-signs and sends draw transactions signed by the buyer. Post the transactions from POST /v1/getDrawGumballTxs/{gumballKey} exactly as returned apart from the buyer's signature, before their blockhash expires. mallow sends each one after a short random delay, so the buyer can't influence which item is drawn.