ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / simulateSendL2ToL2Message

simulateSendL2ToL2Message()

simulateSendL2ToL2Message<TChain, TAccount, TChainOverride>(client, parameters): Promise<SendL2ToL2MessageContractReturnType>

Simulate contract call for sendL2ToL2Message

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

SendL2ToL2MessageParameters

Returns

Promise<SendL2ToL2MessageContractReturnType>

The contract functions return value. SendL2ToL2MessageContractReturnType

Defined in

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