Retrieve fee estimates
Get what a send pays the network at each speed, and how long it takes.
What a send from your wallet would pay the network at each speed, slowest first: fee_usd in US cents, and about how many minutes it takes. The fee is paid in the network's own coin, such as POL on Polygon, so sending a token needs some of that coin too. Sends take a person signed in to the dashboard, never an API key.
On a simulated business, the estimates are fixed.
Query
networkstring RequiredOne ofsolana,polygon,ethereum,tron,bitcoin.
Errors
- 400
invalid_requestnetworkis missing or isn't a network.
Any request can also fail on its key or its body. See errors.
Request
curl "https://dash.402pay.co/api/v1/wallet/fee-estimates?network=polygon" \ -H "Authorization: Bearer $PAY402_SECRET_KEY"Response200 OK
{ "data": { "kind": "fee_estimates", "network": "polygon", "speeds": [ { "speed": "slow", "fee_usd": 1, "minutes": 3 }, { "speed": "standard", "fee_usd": 2, "minutes": 2 }, { "speed": "fast", "fee_usd": 4, "minutes": 1 } ] }}