curl --request POST \
--url https://api.platform.bitnob.com/transactions/estimate-fee \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"amount": "25.5",
"asset": "USDT_TRX",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"network": "mainnet",
"sponsor": true,
"treat_as_gross_amount": true
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '25.5',
asset: 'USDT_TRX',
to_address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
wallet_id: 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
network: 'mainnet',
sponsor: true,
treat_as_gross_amount: true
})
};
fetch('https://api.platform.bitnob.com/transactions/estimate-fee', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.bitnob.com/transactions/estimate-fee"
payload = {
"amount": "25.5",
"asset": "USDT_TRX",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"network": "mainnet",
"sponsor": True,
"treat_as_gross_amount": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.bitnob.com/transactions/estimate-fee",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '25.5',
'asset' => 'USDT_TRX',
'to_address' => '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'wallet_id' => 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
'network' => 'mainnet',
'sponsor' => true,
'treat_as_gross_amount' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.bitnob.com/transactions/estimate-fee"
payload := strings.NewReader("{\n \"amount\": \"25.5\",\n \"asset\": \"USDT_TRX\",\n \"to_address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"wallet_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n \"network\": \"mainnet\",\n \"sponsor\": true,\n \"treat_as_gross_amount\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platform.bitnob.com/transactions/estimate-fee")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"25.5\",\n \"asset\": \"USDT_TRX\",\n \"to_address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"wallet_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n \"network\": \"mainnet\",\n \"sponsor\": true,\n \"treat_as_gross_amount\": true\n}")
.asString();{
"fee_levels": {
"high": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
},
"low": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
},
"medium": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
}
},
"object": "fee_estimate",
"recommended": "medium"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}Estimate transaction fee
Returns low, medium, and high fee quotes for a transaction, including gas-funding options and any same-asset settlement totals.
curl --request POST \
--url https://api.platform.bitnob.com/transactions/estimate-fee \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"amount": "25.5",
"asset": "USDT_TRX",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"network": "mainnet",
"sponsor": true,
"treat_as_gross_amount": true
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '25.5',
asset: 'USDT_TRX',
to_address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
wallet_id: 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
network: 'mainnet',
sponsor: true,
treat_as_gross_amount: true
})
};
fetch('https://api.platform.bitnob.com/transactions/estimate-fee', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.bitnob.com/transactions/estimate-fee"
payload = {
"amount": "25.5",
"asset": "USDT_TRX",
"to_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"network": "mainnet",
"sponsor": True,
"treat_as_gross_amount": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.bitnob.com/transactions/estimate-fee",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '25.5',
'asset' => 'USDT_TRX',
'to_address' => '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
'wallet_id' => 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
'network' => 'mainnet',
'sponsor' => true,
'treat_as_gross_amount' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.bitnob.com/transactions/estimate-fee"
payload := strings.NewReader("{\n \"amount\": \"25.5\",\n \"asset\": \"USDT_TRX\",\n \"to_address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"wallet_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n \"network\": \"mainnet\",\n \"sponsor\": true,\n \"treat_as_gross_amount\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platform.bitnob.com/transactions/estimate-fee")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"25.5\",\n \"asset\": \"USDT_TRX\",\n \"to_address\": \"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\",\n \"wallet_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n \"network\": \"mainnet\",\n \"sponsor\": true,\n \"treat_as_gross_amount\": true\n}")
.asString();{
"fee_levels": {
"high": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
},
"low": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
},
"medium": {
"amount": "0.0012",
"amount_raw": "1200000000000000",
"breakdown": [
{
"key": "base_fee",
"label": "Base fee",
"unit": "ETH",
"value": "0.0009"
}
],
"estimated_time_seconds": 30,
"usd_value": "3.45"
}
},
"object": "fee_estimate",
"recommended": "medium"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"type": "<string>"
}
}Authorizations
Headers
API version (defaults to the latest supported version if omitted).
v1 Unique key (1-255 printable ASCII chars) used to safely retry write operations. Same key + body returns the cached response; same key + different body returns 409.
1 - 255Body
Amount to send as a human-readable decimal in the asset's display unit
"25.5"
Asset to send — the asset ID (e.g. USDT_TRX, USDC_ETH, TRX) or, for a single-chain wallet, the bare symbol (e.g. USDT) which resolves to the wallet's chain. See GET /assets for the full list.
"USDT_TRX"
Recipient address
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
Identifier of the wallet the transaction would be sent from
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Deprecated. The environment determines the network (live→mainnet, sandbox→testnet); an omitted value defaults to the wallet's network. Ignored when it contradicts the environment.
"mainnet"
Whether to estimate fees as if the network fee were sponsored
Whether the amount is treated as gross (fee deducted from it) rather than net