Estimate Withdrawal Fee
POST /withdrawal/fee-estimate/
Calculates the estimated fee for a cryptocurrency withdrawal. This endpoint allows you to get an approximation of the withdrawal fee before initiating the actual withdrawal transaction, helping users make informed decisions about their transfers.
Request Headers
| Header | Description |
|---|---|
| Authorization | Bearer token for authentication: Bearer <access_token> |
| X-API-Key | API key for authentication (alternative to OAuth 2.0 token) |
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| amount | number | The amount of cryptocurrency to withdraw |
| blockchain | string | The blockchain network to use. Options: ETH, BSC, TRX, SOL, ARB, BASE, BTC, LTC, DOGE, MATIC, AVAX, XRP, ADA |
| token | string | Optional. The token to withdraw. Default: USDT |
Example Request
POST /withdrawal/fee-estimate/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"amount": 100.50,
"blockchain": "ETH",
"token": "USDT"
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| currency | string | The currency code used for the fee calculation (e.g., USDTERC20) |
| fee | number | The estimated fee amount in the same currency |
Example Response
{
"currency": "USDTERC20",
"fee": 1.50
}
Error Codes
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_request | The request was malformed or contained invalid parameters |
| 400 | invalid_currency | The currency created from the blockchain/token combination is not supported |
| 401 | unauthorized | Authentication failed or token is missing |
| 403 | forbidden | Insufficient permissions to use this endpoint |
| 422 | invalid_amount | The amount must be a positive number |
| 429 | rate_limit_exceeded | Too many requests in a short period |
| 500 | service_unavailable | Fee estimation service is temporarily unavailable |
Notes
- Fees are calculated based on current network conditions and may vary when the actual withdrawal is processed
- Fees generally include both the Cryptofuse service fee and the blockchain network fee
- For some blockchains, fees may be higher during periods of network congestion
- The fee is returned in the same currency as the withdrawal
- Currency codes are constructed based on the combination of token and blockchain (e.g., USDT on Ethereum is
USDTERC20)
Fee Components
The total fee consists of:
- Network Fee: The cost of processing the transaction on the blockchain
- Service Fee: Cryptofuse's processing fee
- Priority Fee: Optional fee for faster processing (when applicable)
Common Currency Codes
| Blockchain | Token | Currency Code |
|---|---|---|
| ETH | USDT | USDTERC20 |
| TRX | USDT | USDTTRC20 |
| BSC | USDT | USDTBSC |
| SOL | USDT | USDTSOL |
| ARB | USDT | USDTARB |
| BASE | USDT | USDTBASE |
Example: Ethereum USDT Withdrawal Fee
POST /withdrawal/fee-estimate/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"amount": 500.00,
"blockchain": "ETH",
"token": "USDT"
}
Response:
{
"currency": "USDTERC20",
"fee": 2.25
}
Example: Tron USDT Withdrawal Fee
POST /withdrawal/fee-estimate/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"amount": 500.00,
"blockchain": "TRX",
"token": "USDT"
}
Response:
{
"currency": "USDTTRC20",
"fee": 1.00
}