---
title: gwei
description: This documentation page details the 'gwei' functionality of OpenBB's
crypto onchain operations. It contains code snippets and function descriptions for
retrieving Ethereum gas fees data, along with export methods for the same.
keywords:
- crypto onchain operations
- gwei
- Ethereum gas fees data
- data export
- Source Code
- function documentation
- onchain data
---
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Returns the most recent Ethereum gas fees in gwei
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethgasstation_model.py#L13)]
```python
openbb.crypto.onchain.gwei()
```
---
## Parameters
This function does not take any parameters.
---
## Returns
| Type | Description |
| ---- | ----------- |
| pd.DataFrame | four gas fees and durations
(fees for slow, average, fast and
fastest transactions in gwei and
its average durations in seconds) |
---
Current gwei fees
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethgasstation_view.py#L14)]
```python
openbb.crypto.onchain.gwei_chart(export: str = "")
```
---
## Parameters
| Name | Type | Description | Default | Optional |
| ---- | ---- | ----------- | ------- | -------- |
| export | str | Export dataframe data to csv,json,xlsx file | | True |
---
## Returns
This function does not return anything
---