Settle gumball sale
Builds the transaction that settles one item's sale. It pays the seller, the machine authority's curator share, the marketplace fee and the creators' royalties, and delivers the item to buyer if it hasn't been claimed. An unsold item (buyer set to the System Program) goes back to the seller. Anyone can sign and pay as payer.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/gumball/settle-sale" \ -H "Content-Type: application/json" \ -d '{ "payer": "string", "gumballMachine": "string", "authority": "string", "seller": "string", "buyer": "string", "asset": "string", "index": 0 }'{ "result": { "tx": "string", "setupTx": "string" }}Remove gumball item POST
Builds the transaction removing an unsold item from gumballMachine and returning it to seller. authority signs, and must be the machine's authority or the item's seller.
Claim gumball item POST
Builds the transaction sending a drawn item to its buyer. Anyone can sign and pay as payer.