Withdrawing Assets: Introduction
Withdrawing Assets from Virtual Accounts: Introduction
Setting up Virtual Accounts is similar for all the supported blockchains.
However, withdrawing funds from a Virtual Account works differently depending on what blockchain the Virtual Account is created for.
UTXO (like Bitcoin) blockchains
On UTXO-based blockchains such as Bitcoin, Bitcoin Cash, Dogecoin, and Litecoin, withdrawing funds from Virtual Accounts is "easier" when the Virtual Accounts are associated with the same extended public key (XPUB).
This way, all the deposit addresses that you generate for those virtual accounts are associated with the same XPUB, and you do not have to track all UTXO transactions. During the withdrawal, all the deposit addresses are automatically scanned for incoming deposits that are then used as a source of the withdrawal transaction.
BTC Example:
To withdraw funds from BTC Virtual Accounts associated with the same xpub, you can usethe following v3 REST API endpoint for sending the funds from a BTC-based Virtual Account to the blockchain.
EVM (like Ethereum) blockchains
On EVM-compatible blockchains such as Ethereum, BNB Smart Chain, Celo, and so on, you can choose from the following approaches to withdrawals:
- Withdraw assets from each blockchain deposit address separately. (NOT recommended)
- Centralize assets across all deposit addresses into a "Master Exchange blockchain address" and withdraw from there. (Recommended)
Stellar, and XRP
On Stellar, and XRPL, one deposit address is used and customers are identified by blockchain-specific parameters such as memo
, message
, and DestinationTag
, accordingly.
Updated 5 months ago