Wallet

Estimate network fee (preferred; reads from fee oracle cache)

Returns **network fee only** from the blockchain. **Preferred endpoint** for network fee. Uses a fee oracle: fees are polled every 15–20s and cached, so responses are fast and RPC load is minimal (same strategy as large wallets). No platform fee. Request/response identical to POST /api/wallet/calculate-fee (which is an alias). See docs/FEE_ARCHITECTURE.md. 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). **Fresh fee before broadcast:** To avoid stuck transactions, get a fresh estimate right before building/signing: use query `?fresh=1` or header `X-Fee-Fresh: true` to bypass cache.

AuthPublic
GroupWallet
Rate limitSee Rate Limits
POST/api/wallet/estimate-network-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.estimateNetworkFee(
  {
    currency: "ZWL",
    amount: 613.15,
    network: "array reboot"
  }
);
const { data: result } = await wallet.estimateNetworkFee(
  {
    currency: "ZWL",
    amount: 613.15,
    network: "array reboot"
  }
);

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 from RPC/fee API (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.
json
{
  "success": true,
  "data": {}
}
{
  "success": true,
  "data": {}
}
400

Errors

CodeMeaning
400
Edit this page on GitHub