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

# parseGwei

Converts a string representation of gwei to numerical wei.

## Import

```ts
import { parseGwei } from 'viem'
```

## Usage

```ts
import { parseGwei } from 'viem'

parseGwei('420') // [!code focus:2]
// 420000000000n
```

## Returns

`bigint`

## Parameters

### value

* **Type:** `string`

The string representation of gwei.
