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.
/api/wallet/estimate-network-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.estimateNetworkFee(
{
currency: "ZWL",
amount: 613.15,
network: "array reboot"
}
);const { data: result } = await wallet.estimateNetworkFee(
{
currency: "ZWL",
amount: 613.15,
network: "array reboot"
}
);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 from RPC/fee API (use right before building tx for broadcast) |
Request Body
{
"currency": "ADA",
"amount": 69.62,
"network": "ETH"
}{
"currency": "ADA",
"amount": 69.62,
"network": "ETH"
}Responses
{
"success": true,
"data": {}
}{
"success": true,
"data": {}
}Errors
| Code | Meaning |
|---|---|
400 | — |