Skip to main content
Version: next 🚧

getWithdrawalRequestFee()

getWithdrawalRequestFee(provider, contractAddress?): Promise<bigint>

Defined in: withdrawalFee.ts:19

Reads the current per-request fee (wei) from the EIP-7002 withdrawal request contract. A call with empty calldata returns the fee.

Parameters​

ParameterTypeDefault value
providerProviderundefined
contractAddressstringWITHDRAWAL_REQUEST_CONTRACT_ADDRESS

Returns​

Promise<bigint>