> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Fee

:::info
`Fee` is a re-export of ox's [`Fee`](https://oxlib.sh/api/Fee). Refer to the ox documentation for the full reference.
:::

Utility types for working with Ethereum transaction fees and fee history.

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`Fee.effectiveGasPrice`](/docs/utilities/fee/effectiveGasPrice) | Computes the effective gas price an EIP-1559 transaction will pay: |
| [`Fee.estimateMaxFeePerGas`](/docs/utilities/fee/estimateMaxFeePerGas) | Estimates a `maxFeePerGas` from a base fee, a priority tip, and a multiplier applied to the base fee: |
| [`Fee.fromHistoryRpc`](/docs/utilities/fee/fromHistoryRpc) | Converts a [`Fee.FeeHistoryRpc`](/docs/utilities/fee/types#feehistoryrpc) to a [`Fee.FeeHistory`](/docs/utilities/fee/types#feehistory). |
| [`Fee.toHistoryRpc`](/docs/utilities/fee/toHistoryRpc) | Converts a [`Fee.FeeHistory`](/docs/utilities/fee/types#feehistory) to a [`Fee.FeeHistoryRpc`](/docs/utilities/fee/types#feehistoryrpc). |

## Types

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`Fee.FeeHistory`](/docs/utilities/fee/types#feefeehistory) |  |
| [`Fee.FeeHistoryRpc`](/docs/utilities/fee/types#feefeehistoryrpc) |  |
| [`Fee.FeeValues`](/docs/utilities/fee/types#feefeevalues) |  |
| [`Fee.FeeValuesEip1559`](/docs/utilities/fee/types#feefeevalueseip1559) |  |
| [`Fee.FeeValuesEip1559Rpc`](/docs/utilities/fee/types#feefeevalueseip1559rpc) |  |
| [`Fee.FeeValuesEip4844`](/docs/utilities/fee/types#feefeevalueseip4844) |  |
| [`Fee.FeeValuesEip4844Rpc`](/docs/utilities/fee/types#feefeevalueseip4844rpc) |  |
| [`Fee.FeeValuesLegacy`](/docs/utilities/fee/types#feefeevalueslegacy) |  |
| [`Fee.FeeValuesLegacyRpc`](/docs/utilities/fee/types#feefeevalueslegacyrpc) |  |
| [`Fee.FeeValuesRpc`](/docs/utilities/fee/types#feefeevaluesrpc) |  |
| [`Fee.FeeValuesType`](/docs/utilities/fee/types#feefeevaluestype) |  |
