<VersionWarning version="0.1" />

# getRequiredPrefund

Returns the minimum required funds in wei in the senders's smart account to execute the user operation.

## Import

```ts
import { getRequiredPrefund } from "permissionless"
```

## Usage

```ts
import { getRequiredPrefund } from "permissionless"

const requiredPrefund = getRequiredPrefund({
    userOperation
})
// 354000000000000n
```

## Returns

`BigInt`

The requied prefund in wei.

## Parameters

### userOperation

* **Type:** `UserOperation`

The User Operation to get the prefund for.
