cURL
curl --request POST \ --url https://api.docs.magicblock.app/private/tx/withdraw \ --header 'Content-Type: application/json' \ --data ' { "owner": "<string>", "user": "<string>", "mint": "<string>", "amount": 1, "endpoint_url": "<string>" } '
{ "transaction": "<string>", "message": "Transaction created successfully" }
Withdraw SPL tokens from an ephemeral ATA on Solana.
Owner of ephemeral ATA (payer and signer)
Owner of the ephemeral ATA
SPL token mint
Amount of tokens to withdraw
x >= 0
Solana endpoint URL override
Successful Response
Base64-encoded serialized transaction
Was this page helpful?