ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / estimateSendSuperchainWETHGas

estimateSendSuperchainWETHGas()

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

Estimates gas for sendSuperchainWETH

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: SendSuperchainWETHParameters<TChain, TAccount, TChainOverride, DeriveChain<TChain, TChainOverride>>

SendSuperchainWETHParameters

Returns

Promise<bigint>

The estimated gas value.

Defined in

packages/viem/src/actions/sendSuperchainWETH.ts:74