ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / estimateWithdrawSuperchainWETHGas

estimateWithdrawSuperchainWETHGas()

estimateWithdrawSuperchainWETHGas<TChain, TAccount, TChainOverride>(client, parameters): Promise<bigint>

Estimates gas for withdrawSuperchainWETH

Type Parameters

TChain extends undefined | Chain

TAccount extends undefined | Account

TChainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, TChain, TAccount>

L2 Wallet Client

parameters: WithdrawSuperchainWETHParameters<TChain, TAccount, TChainOverride, DeriveChain<TChain, TChainOverride>>

WithdrawSuperchainWETHParameters

Returns

Promise<bigint>

The estimated gas value.

Defined in

packages/viem/src/actions/withdrawSuperchainWETH.ts:96