Create Withdrawal
POST/v1/wallets/withdrawal
Trigger a withdrawal, requires bearer token in authorization header
The BX-SIGNATURE header should be created by signing the request with an ECDSA API Key as follows:
- Construct a string that concatenates the following fields:
timestamp- current epoch milliseconds e.g. 1697008474031nonce- a UUID identifier to protect against replay attacks e.g. 255241a1-2cde-4954-87b1-13beef547960request method- e.g. POSTrequest path- e.g. /trading-api/v1/wallets/withdrawalrequest body JSON string, removing any spaces and newline characters
- Hash the string using a SHA-256 hash function and sign the resulting hexdigest with your
<PRIVATE_KEY>. - DER encode the signature, and base64 encode the DER encoded signature.
Bullish requires you to whitelist a withdrawal destination address before submitting a withdrawal request. You may view, approve, and manage your list of destination addresses in Account Settings on the Bullish website. If you attempt a withdrawal without first whitelisting an address in Account Settings, then the withdrawal attempt will fail.
For a full example of using the withdrawal endpoint please see the Custody Withdrawal Example
Please note that Custody endpoints utilize a non-multiplied asset format for long decimal assets like SHIB and PEPE, ensuring consistency with real-world asset representation. This differs from Trading endpoints, which use a multiplied asset format, such as SHIB1M and PEPE1M. For more information, please see help center
The currently supported precisions for withdrawal quantities are as follows. Please note that fees are always specified in units of the symbol itself, not in smaller denominations (e.g. BTC not Satoshi, ETH not Wei) :
| Symbol | Precision | Remarks |
|---|---|---|
| USD | 2dp | |
| BTC | 8dp | |
| DOGE | 8dp | |
| ETH | 8dp | |
| LTC | 8dp | |
| XRP | 6dp | |
| AAVE | 8dp | |
| CRV | 8dp | |
| LINK | 8dp | |
| MANA | 8dp | |
| MATIC | 8dp | |
| SUSHI | 8dp | |
| UNI | 8dp | |
| USDC | 6dp | |
| USDT | 6dp | |
| SHIB | 2dp | Please ensure to use the non-multiplied asset format (e.g., SHIB, PEPE, BONK) when creating withdrawals, as Custody endpoints align with real-world asset representation |
| PEPE | 2dp | Please ensure to use the non-multiplied asset format (e.g., SHIB, PEPE, BONK) when creating withdrawals, as Custody endpoints align with real-world asset representation |
| BONK | Round to the nearest ten (e.g., 120 or 130, not 125). | Please ensure to use the non-multiplied asset format (e.g., SHIB, PEPE, BONK) when creating withdrawals, as Custody endpoints align with real-world asset representation |
Ratelimited: True - see custody limits
Request
Responses
- 200
- 429
- 500
OK
Too Many Requests
Internal Server Error