Skip to content
Developer
Sign inSign up

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, a decimal string in US dollars, and about how many minutes it takes. The fee is paid in the network's own coin, such as ETH on Ethereum, so sending a token needs some of that coin too. Sends take a person signed in to the dashboard, never an API key.

Query

  • network string Required
    One of solana, ethereum, base, tron, bitcoin, litecoin.

Errors

  • 400 invalid_request
    network is missing or isn't a network.

Any request can also fail on its key or its body. See errors.

Request
curl "https://wallet.402pay.co/api/v1/wallet/fee-estimates?network=ethereum" \  -H "Authorization: Bearer $PAY402_SECRET_KEY"
Response200 OK
{  "data": {    "kind": "fee_estimates",    "network": "ethereum",    "speeds": [      {        "speed": "slow",        "fee_usd": "0.45",        "minutes": 3      },      {        "speed": "standard",        "fee_usd": "0.90",        "minutes": 2      },      {        "speed": "fast",        "fee_usd": "1.80",        "minutes": 1      }    ]  }}