ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / relayL2ToL2Message

relayL2ToL2Message()

relayL2ToL2Message<TChain, TAccount, TChainOverride>(client, parameters): Promise<RelayL2ToL2MessageReturnType>

Relays a message emitted by the L2ToL2CrossDomainMessenger

Type Parameters

TChain extends undefined | Chain

TAccount extends undefined | Account

TChainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, TChain, TAccount>

Client to use

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

RelayL2ToL2MessageParameters

Returns

Promise<RelayL2ToL2MessageReturnType>

The relayMessage transaction hash. RelayL2ToL2MessageReturnType

Defined in

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