ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / sendL2ToL2Message

sendL2ToL2Message()

sendL2ToL2Message<chain, account, chainOverride>(client, parameters): Promise<SendL2ToL2MessageReturnType>

Initiates the intent of sending a L2 to L2 message. Used in the interop flow.

Type Parameters

chain extends undefined | Chain

account extends undefined | Account

chainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, chain, account>

L2 Wallet Client

parameters: SendL2ToL2MessageParameters<chain, account, chainOverride, DeriveChain<chain, chainOverride>>

SendL2ToL2MessageParameters

Returns

Promise<SendL2ToL2MessageReturnType>

The sendL2ToL2Message transaction hash. SendL2ToL2MessageReturnType

Defined in

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