ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / simulateRelayL2ToL2Message

simulateRelayL2ToL2Message()

simulateRelayL2ToL2Message<TChain, TAccount, TChainOverride>(client, parameters): Promise<RelayL2ToL2MessageContractReturnType>

Simulate contract call for relayL2ToL2Message

Type Parameters

TChain extends undefined | Chain

TAccount extends undefined | Account

TChainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, TChain, TAccount>

L2 Public Client

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

Relay2ToL2MessageParameters

Returns

Promise<RelayL2ToL2MessageContractReturnType>

The contract functions return value. RelayL2ToL2MessageContractReturnType

Defined in

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