ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / estimateRelayL2ToL2MessageGas

estimateRelayL2ToL2MessageGas()

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

Estimates gas for relayL2ToL2Message

Type Parameters

TChain extends undefined | Chain

TAccount extends undefined | Account

TChainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, TChain, TAccount>

Client to use

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

RelayL2ToL2MessageParameters

Returns

Promise<bigint>

The estimated gas value.

Defined in

packages/viem/src/actions/relayL2ToL2Message.ts:103