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.

AuthPublic
GroupWallet
Rate limitSee Rate Limits
POST/api/wallet/calculate-fee

SDK 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

live

Test 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

Public — No Auth Required

Query Parameters

NameTypeRequiredDescription
freshstringNoBypass cache and fetch current fee (use right before building tx for broadcast)

Request Body

json
{
  "currency": "ADA",
  "amount": 69.62,
  "network": "ETH"
}
{
  "currency": "ADA",
  "amount": 69.62,
  "network": "ETH"
}

Responses

200Network fee only (from blockchain). No platform or project fee.

Bitcoin (BTC)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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)

json
{
  "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

json
{
  "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)

json
{
  "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

json
{
  "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

json
{
  "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

json
{
  "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

json
{
  "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

json
{
  "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"
  }
}
400

Errors

CodeMeaning
400
Edit this page on GitHub