> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FeeData

A **FeeData** wraps all the fee-related values associated with the network.

## Constructors

### new FeeData()

```ts theme={null}
new FeeData(gasPrice?): FeeData
```

Creates a new FeeData for `gasPrice`.

#### Parameters

| Parameter   | Type               | Description    |
| :---------- | :----------------- | :------------- |
| `gasPrice`? | `null` \| `bigint` | The gas price. |

#### Returns

[`FeeData`](/sdk/content/classes/FeeData)

#### Source

[providers/provider.ts:106](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L106)

## Properties

| Property   | Modifier   | Type               | Description                        |
| :--------- | :--------- | :----------------- | :--------------------------------- |
| `gasPrice` | `readonly` | `null` \| `bigint` | The gas price for legacy networks. |

## Methods

### toJSON()

```ts theme={null}
toJSON(): any
```

Returns a JSON-friendly value.

#### Returns

`any`

The JSON-friendly value.

#### Source

[providers/provider.ts:117](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L117)
