A crypto withdrawal sends a token from your balance to an address outside SwapWallet. It takes two calls:
The withdrawal starts as PENDING and turns SUCCEED once the network confirms it. Follow it with Retrieve a transaction.
Balance and limit errors (INSUFFICIENT_USER_BALANCE, USER_DO_NOT_CONSIDER_NETWORK_FEE, LIMIT_DAILY_WITHDRAW_EXCEEDED, LIMIT_MONTHLY_WITHDRAW_EXCEEDED, USER_BALANCE_LOCKED) carry one more field, error.suggestionAmount: the most you can withdraw right now, as a Money object.
Trades settle instantly, and crypto in your balance can usually be withdrawn right away. The one exception: crypto bought with Toman deposited in the last 72 hours. The part of it above your account’s instant-withdrawal credit can be withdrawn 72 hours after that deposit. Until then, a request that needs it fails with USER_BALANCE_LOCKED, and suggestionAmount shows how much you can withdraw now. Crypto deposited from outside, and older balances, are never held.
How one token can be withdrawn on one network.
networkenumRequiredThe network.
Possible values
TRONETHEREUMBSCBNB Smart Chain.TONPOLYGONARBITRUMAVALANCHEOPTIMISMSOLANAFANTOMSUIDOGEBTCADAXRPNEARwithdrawFeeMoneynullableSwapWallet’s withdrawal fee on this network, in the token itself. null when withdrawals on this network are closed.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
minWithdrawMoneynullableSmallest amount you can withdraw. null when there is no minimum.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
maxWithdrawMoneynullableLargest amount per withdrawal. null when there is no network maximum; your account limits still apply.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
withdrawEnabledbooleanRequiredWhether you can withdraw this token on this network right now.
supportMemobooleanRequiredWhether the network takes a memo (tag). Send memo only when this is true.
{
"network": "BSC",
"withdrawFee": {
"number": "0.5",
"unit": "USDT"
},
"minWithdraw": {
"number": "2",
"unit": "USDT"
},
"maxWithdraw": {
"number": "50000",
"unit": "USDT"
},
"withdrawEnabled": true,
"supportMemo": false
}A Transaction object with type CRYPTO_WITHDRAW. These are its fields; cryptoWithdraw holds the details.
idintegerRequiredTransaction ID. Unique across all types.
supportCodestringRequiredCode to quote to support, such as SW-K7NP2QR-MXVT.
timestampintegerRequiredWhen SwapWallet recorded the transaction, in Unix milliseconds. For a crypto deposit, the time it was credited, not its block time.
typeenumRequiredAlways CRYPTO_WITHDRAW.
Possible values
CRYPTO_WITHDRAWstatusenumRequiredWhere the withdrawal stands.
Possible values
PENDINGNot yet confirmed on the network.SUCCEEDConfirmed on the network.networkenumRequiredThe network it was sent on.
Possible values
TRONETHEREUMBSCBNB Smart Chain.TONPOLYGONARBITRUMAVALANCHEOPTIMISMSOLANAFANTOMSUIDOGEBTCADAXRPNEARexchangeFeeMoneyRequiredThe withdrawal fee charged.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
cryptoWithdrawobjectRequiredWithdrawal details.
amountMoneyRequiredAmount sent to the destination address.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
valueMoneyRequiredValue in US dollars (USD) at the time of the transaction.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
userCurrencyValueMoneyRequiredThe same value in your account's display currency, usually IRT. It's converted at the current rate each time you read it, so it moves with the market.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
contractenumThe token standard on the network. Left out for a network's own coin, such as TRX on Tron.
Possible values
TRC20Tron token.ERC20Ethereum, Arbitrum or Polygon token.BEP20BNB Smart Chain token.JETTONTON token.SPLSolana token.sourceAddressstringSwapWallet’s sending address. Left out until the withdrawal is sent.
destinationAddressstringRequiredThe address you withdrew to.
hashstringTransaction hash on the network. Left out until the withdrawal is sent.
memostringThe memo sent with the withdrawal. Left out when there is none.
blockScanUrlstringLink to the transaction on a block explorer. Left out until the withdrawal is sent.
workflowarray of objectsRequiredThe withdrawal’s progress, one entry per step, always in this order.
stepenumRequiredThe step.
Possible values
TRANSACTION_CREATEDThe request was recorded and the amount taken from your balance.ACCEPTED_BY_ADMINApproved for sending, automatically or after a review.PUBLISHED_TO_NETWORKSent to the network; hash is now set.CONFIRMED_BY_NETWORKConfirmed on the network. The transaction’s status turns SUCCEED.donebooleanRequiredWhether the step is complete.
dateISO 8601 timestampnullableWhen the step completed. null until then.
{
"id": 3052410,
"supportCode": "SW-T2KD8WQ-HN4R",
"timestamp": 1795168932000,
"type": "CRYPTO_WITHDRAW",
"status": "PENDING",
"network": "BSC",
"exchangeFee": {
"number": "0.5",
"unit": "USDT"
},
"cryptoWithdraw": {
"amount": {
"number": "200",
"unit": "USDT"
},
"value": {
"number": "200",
"unit": "USD"
},
"userCurrencyValue": {
"number": "54480000",
"unit": "IRT"
},
"contract": "BEP20",
"destinationAddress": "0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a",
"workflow": [
{
"step": "TRANSACTION_CREATED",
"done": true,
"date": "2026-11-20T10:02:12.204871Z"
},
{
"step": "ACCEPTED_BY_ADMIN",
"done": false,
"date": null
},
{
"step": "PUBLISHED_TO_NETWORK",
"done": false,
"date": null
},
{
"step": "CONFIRMED_BY_NETWORK",
"done": false,
"date": null
}
]
}
}/v1/wallet/crypto-withdraw/config/{token}Returns, for each network that carries the token, whether withdrawals are open, the withdrawal fee, the minimum and maximum amount, and whether a memo is accepted. Call it before every withdrawal: fees and open networks change.
The withdrawal fee covers more than the network’s own cost, so it can differ from what a block explorer shows.
tokenstringRequiredToken symbol, such as USDT or TON.
Returns an array of Withdrawal settings objects in result, one per network.
INVALID_REQUEST_PARAMETERtoken isn’t a token SwapWallet knows.
curl https://swapwallet.app/api/v1/wallet/crypto-withdraw/config/USDT \
-H "Authorization: Bearer $SWAPWALLET_API_KEY"const response = await fetch('https://swapwallet.app/api/v1/wallet/crypto-withdraw/config/USDT', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SWAPWALLET_API_KEY}`,
},
});
const data = await response.json();
console.log(data.result);import os
import requests
response = requests.get(
"https://swapwallet.app/api/v1/wallet/crypto-withdraw/config/USDT",
headers={"Authorization": f"Bearer {os.environ['SWAPWALLET_API_KEY']}"},
)
print(response.json()["result"])<?php
$ch = curl_init('https://swapwallet.app/api/v1/wallet/crypto-withdraw/config/USDT');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SWAPWALLET_API_KEY'),
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['result']);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://swapwallet.app/api/v1/wallet/crypto-withdraw/config/USDT", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("SWAPWALLET_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}{
"status": "OK",
"result": [
{
"network": "TRON",
"withdrawFee": {
"number": "4.9",
"unit": "USDT"
},
"minWithdraw": {
"number": "5",
"unit": "USDT"
},
"maxWithdraw": {
"number": "50000",
"unit": "USDT"
},
"withdrawEnabled": true,
"supportMemo": false
},
{
"network": "BSC",
"withdrawFee": {
"number": "0.5",
"unit": "USDT"
},
"minWithdraw": {
"number": "2",
"unit": "USDT"
},
"maxWithdraw": {
"number": "50000",
"unit": "USDT"
},
"withdrawEnabled": true,
"supportMemo": false
},
{
"network": "TON",
"withdrawFee": null,
"minWithdraw": {
"number": "1",
"unit": "USDT"
},
"maxWithdraw": null,
"withdrawEnabled": false,
"supportMemo": true
}
]
}/v1/wallet/crypto-withdrawWithdraws a token from your balance to an address on the network you choose. The amount and the fee leave your balance at once, and the withdrawal is sent to the network after approval.
Pass fee from the settings: if the fee has changed since, the request fails instead of charging the new fee. The same withdrawal sent twice within 10 seconds is refused as a duplicate.
If address is the deposit address of a SwapWallet payment invoice, that invoice is paid from your balance instead, and the response is a PAYMENT transaction.
amountMoneyRequiredHow much to withdraw, in the token being withdrawn. unit picks the token.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
networkenumRequiredNetwork to send on. It must carry the token and have withdrawEnabled.
Possible values
TRONETHEREUMBSCBNB Smart Chain.TONPOLYGONARBITRUMAVALANCHEOPTIMISMSOLANAFANTOMSUIDOGEBTCADAXRPNEARaddressstringRequiredDestination address on that network.
feeMoneynullableThe withdrawal fee you expect, from withdrawFee in the settings. If it doesn’t match the current fee, the request fails with TRANSACTION_FEE_HAS_CHANGED. Recommended.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
feeDeductTypeenumnullableWhere the withdrawal fee comes from.
Possible values
EXTERNALFrom your balance, on top. The address receives amount; your balance goes down by amount + fee.INTERNALOut of amount. The address receives amount − fee; your balance goes down by amount.memostringnullableMemo or tag for the destination, if it needs one (exchanges often do on TON). Only on networks with supportMemo; elsewhere the request fails.
remarkstringnullableA private note for your own records. Saved on the transaction in the app; never sent to the network.
Returns the Crypto withdrawal transaction in result, with status PENDING.
INSUFFICIENT_USER_BALANCEYour balance doesn’t cover the withdrawal.
USER_DO_NOT_CONSIDER_NETWORK_FEEYour balance covers amount but not amount + the withdrawal fee.
LIMIT_DAILY_WITHDRAW_EXCEEDEDOver your daily withdrawal limit.
LIMIT_MONTHLY_WITHDRAW_EXCEEDEDOver your monthly withdrawal limit.
USER_BALANCE_LOCKEDThe withdrawal needs crypto bought with Toman deposited in the last 72 hours, above your instant-withdrawal credit. That part can be withdrawn 72 hours after the deposit.
TRANSACTION_FEE_HAS_CHANGEDfee doesn’t match the current withdrawal fee. Get the settings again.
WITHDRAW_AMOUNT_IS_LESS_THAN_MINIMUMamount is below minWithdraw.
WITHDRAW_AMOUNT_IS_MORE_THAN_MAXIMUMamount is above maxWithdraw.
INVALID_AMOUNTWith INTERNAL, amount doesn’t exceed the fee.
INVALID_ADDRESS_FORMATaddress isn’t a valid address on this network.
INVALID_NETWORKaddress belongs to a SwapWallet account. Send to SwapWallet users by transfer in the app instead.
MEMO_NOT_SUPPORTEDmemo was sent for a network that doesn’t take one.
INVALID_TOKEN_ENUMThe network doesn’t carry this token.
CRYPTO_WITHDRAW_IS_DISABLEDCrypto withdrawals are paused for now.
DUPLICATE_WITHDRAWThe same withdrawal was made less than 10 seconds ago.
curl -X POST https://swapwallet.app/api/v1/wallet/crypto-withdraw \
-H "Authorization: Bearer $SWAPWALLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {
"number": "200",
"unit": "USDT"
},
"network": "BSC",
"address": "0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a",
"fee": {
"number": "0.5",
"unit": "USDT"
},
"feeDeductType": "EXTERNAL",
"remark": "Supplier invoice 1043"
}'const response = await fetch('https://swapwallet.app/api/v1/wallet/crypto-withdraw', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SWAPWALLET_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
amount: {
number: '200',
unit: 'USDT',
},
network: 'BSC',
address: '0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a',
fee: {
number: '0.5',
unit: 'USDT',
},
feeDeductType: 'EXTERNAL',
remark: 'Supplier invoice 1043',
}),
});
const data = await response.json();
console.log(data.result);import os
import requests
response = requests.post(
"https://swapwallet.app/api/v1/wallet/crypto-withdraw",
headers={"Authorization": f"Bearer {os.environ['SWAPWALLET_API_KEY']}"},
json={
"amount": {
"number": "200",
"unit": "USDT",
},
"network": "BSC",
"address": "0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a",
"fee": {
"number": "0.5",
"unit": "USDT",
},
"feeDeductType": "EXTERNAL",
"remark": "Supplier invoice 1043",
},
)
print(response.json()["result"])<?php
$ch = curl_init('https://swapwallet.app/api/v1/wallet/crypto-withdraw');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SWAPWALLET_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'amount' => [
'number' => '200',
'unit' => 'USDT',
],
'network' => 'BSC',
'address' => '0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a',
'fee' => [
'number' => '0.5',
'unit' => 'USDT',
],
'feeDeductType' => 'EXTERNAL',
'remark' => 'Supplier invoice 1043',
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['result']);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"amount": {
"number": "200",
"unit": "USDT"
},
"network": "BSC",
"address": "0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a",
"fee": {
"number": "0.5",
"unit": "USDT"
},
"feeDeductType": "EXTERNAL",
"remark": "Supplier invoice 1043"
}`)
req, _ := http.NewRequest("POST", "https://swapwallet.app/api/v1/wallet/crypto-withdraw", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("SWAPWALLET_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}{
"status": "OK",
"result": {
"id": 3052410,
"supportCode": "SW-T2KD8WQ-HN4R",
"timestamp": 1795168932000,
"type": "CRYPTO_WITHDRAW",
"status": "PENDING",
"network": "BSC",
"exchangeFee": {
"number": "0.5",
"unit": "USDT"
},
"cryptoWithdraw": {
"amount": {
"number": "200",
"unit": "USDT"
},
"value": {
"number": "200",
"unit": "USD"
},
"userCurrencyValue": {
"number": "54480000",
"unit": "IRT"
},
"contract": "BEP20",
"destinationAddress": "0x8f3a2b6c9d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a",
"workflow": [
{
"step": "TRANSACTION_CREATED",
"done": true,
"date": "2026-11-20T10:02:12.204871Z"
},
{
"step": "ACCEPTED_BY_ADMIN",
"done": false,
"date": null
},
{
"step": "PUBLISHED_TO_NETWORK",
"done": false,
"date": null
},
{
"step": "CONFIRMED_BY_NETWORK",
"done": false,
"date": null
}
]
}
}
}{
"status": "ERROR",
"error": {
"codeString": "USER_BALANCE_LOCKED",
"message": "Crypto withdraw limited for 72h",
"localizedMessage": "طبق قوانین پلیس فتا، بخشی از موجودی شما موقتا به صورت رمزارزی قابل برداشت نیست.",
"suggestionAmount": {
"number": "120.5",
"unit": "USDT"
}
}
}