Use Message Execution Options with LayerZero V2. Developer tools for building and debugging omnichain applications. LayerZero enables crosschain messaging.
When sending crosschain messages, the source chain has no knowledge of the destination chain’s state or the resources required to execute a transaction on it. Message Execution Options provide a standardized way to specify the execution requirements for transactions on the destination chain.You can think of options as serialized requests in bytes that inform the off-chain infrastructure (DVNs and Executors) how to handle the execution of your message on the destination chain.See Message Options for more details on why Options exist in the LayerZero protocol.
Specifies the gas values and response data size the Executor uses when delivering lzRead responses.
Since the return data size is not known to the Executor ahead of time, you must estimate the expected response data size. This size is priced into the Executor’s fee formula. Failure to correctly estimate the return data size will result in the Executor not delivering the response.