Skip to main content
POST
/
private
/
tx
/
prepare-withdrawal
Private Prepare Withdrawal
curl --request POST \
  --url https://api.docs.magicblock.app/private/tx/prepare-withdrawal \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": "<string>",
  "mint": "<string>",
  "endpoint_url": "<string>"
}
'
{
  "transaction": "<string>",
  "message": "Transaction created successfully"
}

Body

application/json
user
string
required

Owner of the ephemeral ATA

mint
string
required

SPL token mint

endpoint_url
string | null

Solana endpoint URL override

Response

Successful Response

transaction
string
required

Base64-encoded serialized transaction

message
string
default:Transaction created successfully