ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / actions / estimateWithdrawCrossDomainMessageGas

estimateWithdrawCrossDomainMessageGas()

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

Estimate the gas cost of the withdrawCrossDomainMessage action.

Type Parameters

TChain extends undefined | Chain

TAccount extends undefined | Account

TChainOverride extends undefined | Chain

Parameters

client: Client<Transport, TChain, TAccount>

Client for the withdrawing chain

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

WithdrawCrossDomainMessageParameters

Returns

Promise<bigint>

The gas cost

Defined in

packages/viem/src/actions/withdrawCrossDomainMessage.ts:151