@eth-optimism/viem • Docs
@eth-optimism/viem / sendL2ToL2Message
sendL2ToL2Message<
chain
,account
,chainOverride
>(client
,parameters
):Promise
<SendL2ToL2MessageReturnType
>
Initiates the intent of sending a L2 to L2 message. Used in the interop flow.
• chain extends undefined
| Chain
• account extends undefined
| Account
• chainOverride extends undefined
| Chain
= undefined
• client: Client
<Transport
, chain
, account
>
L2 Wallet Client
• parameters: SendL2ToL2MessageParameters
<chain
, account
, chainOverride
, DeriveChain
<chain
, chainOverride
>>
Promise
<SendL2ToL2MessageReturnType
>
The sendL2ToL2Message transaction hash. SendL2ToL2MessageReturnType