API reference
Quote a withdrawal
Prepare a withdrawal to an address on another chain and get the message to sign.
POST
https://api.gum.ag/app/v1/withdraw/quoteBody
| Field | Required | Description |
|---|---|---|
address | Yes | Your Solana address or EVM 0x address. |
token | Yes | "USD" to withdraw cash as the chain’s dollar token, or the address of a token you hold on chainId. |
chainId | Yes | The destination chain. USD can’t go to BSC or Robinhood. |
amount | Yes | A decimal string. |
destination | Yes | The address on chainId that receives the funds. |
Response
The same signing fields as a swap quote (signer, message, transaction,
expiresAt), plus amount, token, destination, warnings about the
destination, fee (the chain’s withdrawal fee in USD, taken out of the
amount on delivery), and usdValue: the withdrawal’s USD value, or null when
the token has no price.
Withdrawals can’t be reversed. Check chainId and destination before you
submit.