6b7d8bd51050
Get Withdraw Quote
Returns a withdrawal quote including the fee and a message for the user to sign in their wallet. Use this same endpoint for Ethereum, Solana, and Cardano; there are no Cardano-only public withdrawal quote endpoints.
In the Builder Codes flow, call this endpoint with the API wallet credentials created by /auth/builder/verify-signature. It works the same as the standard API wallet flow: the API wallet authenticates the builder integration for the connected user account, but the returned message_to_sign must still be signed by the user's blockchain wallet.
Important: This endpoint does NOT accept a recipient_address. The backend automatically uses the account's registered wallet address (from the connect flow). This prevents API wallet holders from redirecting withdrawals.
The recipient_address, usd_value, and fee are locked into a server-signed quote stored in Redis. The quote is single-use.
Message format by blockchain
- Ethereum: message_to_sign is human-readable UTF-8 text for the EVM wallet to sign.
- Solana: message_to_sign is human-readable UTF-8 text for the Solana wallet to sign as raw message bytes.
- Cardano: message_to_sign is hex-encoded UTF-8 text. Pass the returned hex string as the CIP-30 signData payload. For UI display, you may hex-decode it, but the signature must cover the returned payload.
Cardano funding transaction
Cardano quote responses may include tx_cbor and validator_address. When tx_cbor is present, the wallet must sign that CBOR transaction and send the resulting signed_tx_cbor in the confirm step.
Authentication
Requires API wallet authentication via headers.
Request body
Response
Withdraw quote created