Request format
curl -X GET "https://newhedge.io/api/v2/network-fees?api_token=YOUR_TOKEN"
curl -X GET "https://newhedge.io/api/v2/network-fees/quote?api_token=YOUR_TOKEN&vbytes=142"
curl -X GET "https://newhedge.io/api/v2/network-fees/quote?api_token=YOUR_TOKEN&inputs=1&outputs=2"
api_token (required) — 24 character token with the fee_estimator enterprise feature.
vbytes — transaction virtual size, takes precedence. Otherwise pass both inputs and outputs to estimate a native P2WPKH size.
200 on success, 400 for a missing or invalid size, 401 for a missing/invalid token, a token without the feature, or the monthly limit, 404 when the estimator is not available yet.
Recommended fee rates
Recommended on-chain fee rates in sat/vB by confirmation target: fastest, half hour, hour, economy, and minimum.
https://newhedge.io/api/v2/network-fees?api_token=YOUR_TOKEN
Replace YOUR_TOKEN with your API token.
{
"unit": "sat/vB",
"fastest": 1.19,
"half_hour": 1.07,
"hour": 0.29,
"economy": 0.25,
"minimum": 0.1,
"updated_at": "2026-10-03T12:40:12Z"
}
Fee quote for a transaction size
Total fee in sats and USD per confirmation target. The total per tier is ceil(rate × vbytes) in sats.
https://newhedge.io/api/v2/network-fees/quote?api_token=YOUR_TOKEN&vbytes=142
Pass inputs and outputs instead of vbytes to estimate a native P2WPKH size.
{
"vbytes": 142,
"btc_usd": 90000.0,
"targets": {
"fastest": {
"sat_vb": 4,
"sats": 568,
"usd": 0.51
},
"half_hour": {
"sat_vb": 3,
"sats": 426,
"usd": 0.38
},
"hour": {
"sat_vb": 2,
"sats": 284,
"usd": 0.26
}
}
}
Error responses
{"error":"Provide vbytes or both inputs and outputs"}, or an invalid size parameter.
{"error":"Token is required"}, {"error":"Invalid token"}, {"error":"Network fee estimator is not enabled for this account"}, or {"error":"Monthly API calls limit reached"}.
{"error":"Network fee estimator is not available yet"}