Wallet
Get network fee only (alias for POST /api/wallet/estimate-network-fee)
Returns **network fee only**, estimated from the blockchain (RPC / fee APIs). No platform fee or project fee. **Same as POST /api/wallet/estimate-network-fee.** Prefer estimate-network-fee for clarity. Supported currencies: BTC, ETH, BNB, LTC, SOL, TRX, USDT, MATIC, AVAX, CELO, DOGE, TON, ADA. For USDT, `network` is required (ETH, BSC, TRX, SOL, POLYGON). Use `?fresh=1` or header `X-Fee-Fresh: true` for a fresh estimate (bypass cache) right before building the transaction for broadcast.
/api/wallet/calculate-feeSDK setup
Create a client instance. No authentication is required for this endpoint.
import { Configuration, WalletApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const wallet = new WalletApi(configuration);import { Configuration, WalletApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const wallet = new WalletApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await wallet.calculateWalletFee(
{
currency: "PEN",
amount: 354.01,
network: "driver bypass"
}
);const { data: result } = await wallet.calculateWalletFee(
{
currency: "PEN",
amount: 354.01,
network: "driver bypass"
}
);Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Authentication
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fresh | string | No | Bypass cache and fetch current fee (use right before building tx for broadcast) |
Request Body
{
"currency": "ADA",
"amount": 69.62,
"network": "ETH"
}{
"currency": "ADA",
"amount": 69.62,
"network": "ETH"
}Responses
Bitcoin (BTC)
{
"success": true,
"data": {
"currency": "BTC",
"network": null,
"amount": 0.01,
"chain": "bitcoin",
"networkFee": "0.00002500 BTC",
"estimatedTime": "10–30 minutes",
"satPerVb": 15,
"feeSat": 3750
}
}{
"success": true,
"data": {
"currency": "BTC",
"network": null,
"amount": 0.01,
"chain": "bitcoin",
"networkFee": "0.00002500 BTC",
"estimatedTime": "10–30 minutes",
"satPerVb": 15,
"feeSat": 3750
}
}Ethereum (ETH)
{
"success": true,
"data": {
"currency": "ETH",
"network": null,
"amount": 0.5,
"chain": "ethereum",
"gasLimit": "21000",
"gasPrice": "30000000000",
"gasPriceGwei": 30,
"estimatedCost": "630000000000000",
"networkFee": "0.00063 ETH",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "ETH",
"network": null,
"amount": 0.5,
"chain": "ethereum",
"gasLimit": "21000",
"gasPrice": "30000000000",
"gasPriceGwei": 30,
"estimatedCost": "630000000000000",
"networkFee": "0.00063 ETH",
"estimatedTime": "15 seconds"
}
}BNB Smart Chain (BNB)
{
"success": true,
"data": {
"currency": "BNB",
"network": null,
"amount": 0.2,
"chain": "bsc",
"gasLimit": "21000",
"gasPrice": "5000000000",
"gasPriceGwei": 5,
"estimatedCost": "105000000000000",
"networkFee": "0.000105 BNB",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "BNB",
"network": null,
"amount": 0.2,
"chain": "bsc",
"gasLimit": "21000",
"gasPrice": "5000000000",
"gasPriceGwei": 5,
"estimatedCost": "105000000000000",
"networkFee": "0.000105 BNB",
"estimatedTime": "15 seconds"
}
}Litecoin (LTC)
{
"success": true,
"data": {
"currency": "LTC",
"network": null,
"amount": 1,
"chain": "litecoin",
"networkFee": "0.00249750 LTC",
"estimatedTime": "10–30 minutes",
"satPerVb": 999,
"feeSat": 249750
}
}{
"success": true,
"data": {
"currency": "LTC",
"network": null,
"amount": 1,
"chain": "litecoin",
"networkFee": "0.00249750 LTC",
"estimatedTime": "10–30 minutes",
"satPerVb": 999,
"feeSat": 249750
}
}Solana (SOL)
{
"success": true,
"data": {
"currency": "SOL",
"network": null,
"amount": 10,
"chain": "solana",
"networkFee": "0.000005 SOL",
"lamports": 5000,
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "SOL",
"network": null,
"amount": 10,
"chain": "solana",
"networkFee": "0.000005 SOL",
"lamports": 5000,
"estimatedTime": "15 seconds"
}
}Tron (TRX)
{
"success": true,
"data": {
"currency": "TRX",
"network": null,
"amount": 100,
"chain": "tron",
"networkFee": "1 TRX",
"estimatedTime": "3 seconds"
}
}{
"success": true,
"data": {
"currency": "TRX",
"network": null,
"amount": 100,
"chain": "tron",
"networkFee": "1 TRX",
"estimatedTime": "3 seconds"
}
}Dogecoin (DOGE)
{
"success": true,
"data": {
"currency": "DOGE",
"network": null,
"amount": 100,
"chain": "dogecoin",
"networkFee": "0.001 DOGE",
"estimatedTime": "10–30 minutes",
"satPerVb": 1,
"feeSat": 250
}
}{
"success": true,
"data": {
"currency": "DOGE",
"network": null,
"amount": 100,
"chain": "dogecoin",
"networkFee": "0.001 DOGE",
"estimatedTime": "10–30 minutes",
"satPerVb": 1,
"feeSat": 250
}
}Polygon (MATIC)
{
"success": true,
"data": {
"currency": "MATIC",
"network": null,
"amount": 10,
"chain": "polygon",
"gasLimit": "21225",
"gasPrice": "99422491153",
"gasPriceGwei": 99.42,
"estimatedCost": "2110242374722425",
"networkFee": "0.002110 MATIC",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "MATIC",
"network": null,
"amount": 10,
"chain": "polygon",
"gasLimit": "21225",
"gasPrice": "99422491153",
"gasPriceGwei": 99.42,
"estimatedCost": "2110242374722425",
"networkFee": "0.002110 MATIC",
"estimatedTime": "15 seconds"
}
}Avalanche (AVAX)
{
"success": true,
"data": {
"currency": "AVAX",
"network": null,
"amount": 1,
"chain": "avalanche",
"gasLimit": "21000",
"gasPrice": "25000000000",
"gasPriceGwei": 25,
"networkFee": "0.000525 AVAX",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "AVAX",
"network": null,
"amount": 1,
"chain": "avalanche",
"gasLimit": "21000",
"gasPrice": "25000000000",
"gasPriceGwei": 25,
"networkFee": "0.000525 AVAX",
"estimatedTime": "15 seconds"
}
}Celo (CELO)
{
"success": true,
"data": {
"currency": "CELO",
"network": null,
"amount": 10,
"chain": "celo",
"gasLimit": "21000",
"networkFee": "0.000021 CELO",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "CELO",
"network": null,
"amount": 10,
"chain": "celo",
"gasLimit": "21000",
"networkFee": "0.000021 CELO",
"estimatedTime": "15 seconds"
}
}TON
{
"success": true,
"data": {
"currency": "TON",
"network": null,
"amount": 1,
"chain": "ton",
"networkFee": "0.01 TON",
"estimatedTime": "5 seconds"
}
}{
"success": true,
"data": {
"currency": "TON",
"network": null,
"amount": 1,
"chain": "ton",
"networkFee": "0.01 TON",
"estimatedTime": "5 seconds"
}
}Cardano (ADA)
{
"success": true,
"data": {
"currency": "ADA",
"network": null,
"amount": 100,
"chain": "cardano",
"networkFee": "0.2 ADA",
"estimatedTime": "20 seconds"
}
}{
"success": true,
"data": {
"currency": "ADA",
"network": null,
"amount": 100,
"chain": "cardano",
"networkFee": "0.2 ADA",
"estimatedTime": "20 seconds"
}
}USDT on Ethereum
{
"success": true,
"data": {
"currency": "USDT",
"network": "ETH",
"amount": 50,
"chain": "ethereum",
"networkFee": "0.00063 ETH",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "USDT",
"network": "ETH",
"amount": 50,
"chain": "ethereum",
"networkFee": "0.00063 ETH",
"estimatedTime": "15 seconds"
}
}USDT on BNB Smart Chain
{
"success": true,
"data": {
"currency": "USDT",
"network": "BSC",
"amount": 50,
"chain": "bsc",
"networkFee": "0.000001 BNB",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "USDT",
"network": "BSC",
"amount": 50,
"chain": "bsc",
"networkFee": "0.000001 BNB",
"estimatedTime": "15 seconds"
}
}USDT on Tron
{
"success": true,
"data": {
"currency": "USDT",
"network": "TRX",
"amount": 50,
"chain": "tron",
"networkFee": "1 TRX",
"estimatedTime": "3 seconds"
}
}{
"success": true,
"data": {
"currency": "USDT",
"network": "TRX",
"amount": 50,
"chain": "tron",
"networkFee": "1 TRX",
"estimatedTime": "3 seconds"
}
}USDT on Solana
{
"success": true,
"data": {
"currency": "USDT",
"network": "SOL",
"amount": 50,
"chain": "solana",
"networkFee": "0.000005 SOL",
"lamports": 5000,
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "USDT",
"network": "SOL",
"amount": 50,
"chain": "solana",
"networkFee": "0.000005 SOL",
"lamports": 5000,
"estimatedTime": "15 seconds"
}
}USDT on Polygon
{
"success": true,
"data": {
"currency": "USDT",
"network": "POLYGON",
"amount": 50,
"chain": "polygon",
"networkFee": "0.002110 MATIC",
"estimatedTime": "15 seconds"
}
}{
"success": true,
"data": {
"currency": "USDT",
"network": "POLYGON",
"amount": 50,
"chain": "polygon",
"networkFee": "0.002110 MATIC",
"estimatedTime": "15 seconds"
}
}Errors
| Code | Meaning |
|---|---|
400 | — |