mallow docs

Withdraw gumball payout

POST
/v2/tx/gumball/withdraw-payout

Builds a transaction that withdraws up to amount of the funds a gumball machine holds for recipient: buyer refunds, or seller, curator or marketplace proceeds. The recipient signs. This works after the machine is closed too; see GET /v2/gumball/{gumballMachine}/payouts for balances.

If a new token account has to be created for the recipient, the transaction comes back partially signed. Keep that signature when the recipient signs.

Authorization

ApiKeyAuth
x-api-key<token>

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/withdraw-payout" \  -H "Content-Type: application/json" \  -d '{    "gumballMachine": "string",    "recipient": "string",    "amount": "string"  }'
{  "result": {    "tx": "string"  }}