> For the complete index of the 402pay docs, see [llms.txt](https://developer.402pay.co/llms.txt).

# Retrieve fee estimates

Get what a send pays the network at each speed, and how long it takes.

`GET https://dash.402pay.co/api/v1/wallet/fee-estimates`

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

- `network` (string, required): One of `solana`, `polygon`, `ethereum`, `tron`, `bitcoin`.

### 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](https://developer.402pay.co/api/errors.md).

Request, cURL:

```bash
curl "https://dash.402pay.co/api/v1/wallet/fee-estimates?network=polygon" \
  -H "Authorization: Bearer $PAY402_SECRET_KEY"
```

Request, Node.js:

```js
const response = await fetch("https://dash.402pay.co/api/v1/wallet/fee-estimates?network=polygon", {
  headers: {
    Authorization: `Bearer ${process.env.PAY402_SECRET_KEY}`,
  },
});
const { data } = await response.json();
```

Request, Python:

```python
import os

import requests

response = requests.get(
    "https://dash.402pay.co/api/v1/wallet/fee-estimates?network=polygon",
    headers={
        "Authorization": f"Bearer {os.environ['PAY402_SECRET_KEY']}",
    },
)
data = response.json()["data"]
```

Response, 200 OK:

```json
{
  "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
      }
    ]
  }
}
```
