Skip to content
LogoLogo

ILayerZeroComposer

Git Source

Functions

lzCompose

Composes a LayerZero message from an OApp.

function lzCompose(
        address _from,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) external payable;

Parameters

NameTypeDescription
_fromaddressThe address initiating the composition, typically the OApp where the lzReceive was called.
_guidbytes32The unique identifier for the corresponding LayerZero src/dst tx.
_messagebytesThe composed message payload in bytes. NOT necessarily the same payload passed via lzReceive.
_executoraddressThe address of the executor for the composed message.
_extraDatabytesAdditional arbitrary data in bytes passed by the entity who executes the lzCompose.