Skip to content

getRequiredPrefund

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

Import

import { getRequiredPrefund } from "permissionless"

Usage

import { getRequiredPrefund } from "permissionless"
 
const requiredPrefund = getRequiredPrefund({
    userOperation
})
// 354000000000000n

Returns

BigInt

The requied prefund in wei.

Parameters

userOperation

  • Type: UserOperation

The User Operation to hash.