ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / estimateSendL2ToL2MessageGas

estimateSendL2ToL2MessageGas()

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

Estimates gas for sendL2ToL2Message

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

SendL2ToL2MessageParameters

Returns

Promise<bigint>

The estimated gas value.

Defined in

packages/viem/src/actions/sendL2ToL2Message.ts:105