> For the complete documentation index, see [llms.txt](https://roqqu-api-services.gitbook.io/ras/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roqqu-api-services.gitbook.io/ras/transaction/get-network-fees.md).

# Get Network Fees

Retrieve estimated network fees for a specific network.

**Endpoint:** `POST /transaction/network-fee`

**Authentication:** Required (`x-api-key` for live, `x-staging-api-key` for test)

#### Request Parameters <a href="#request-parameters-17" id="request-parameters-17"></a>

| Parameter | Type   | Required | Description                                                                                                                |
| --------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------- |
| network   | string | Yes      | Network code to parse in requests. Supported: `bitcoin`, `erc20`, `bep20`, `base`, `litecoin`, `xrp`, `dogecoin`, `solana` |

#### Example Request <a href="#example-request-28" id="example-request-28"></a>

```
curl -X POST https://service.roqqu.com/v1/transaction/network-fee \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "network=solana"

```

#### **Example Response (Success)**

Fee object shape varies by network. Example envelope:

```
{
  "status": "success",
  "message": "fees data received",
  "data": {
    "fee": 0.000005
  }
}
```

For Bitcoin, fee data is derived from recommended sat/byte rates and an estimated transaction size.

#### **Error Responses**

**Unsupported network:**

```
{
  "status": "fail",
  "message": "network not supported"
}
```

**Missing network:**

```
{
  "status": "fail",
  "message": "(network) not found in request body"
}
```
