Skip to main content
This guide will walk you through the process of sending a simple crosschain message using LayerZero. We cover both the traditional EVM setup as well as the Aptos (Move‑VM) approach. Choose the section that matches your target environment.
LayerZero enables seamless communication between different blockchain networks. In these examples, an action on one chain (e.g. Ethereum) triggers a reaction on another (e.g. Aptos) without a central relay.
Diagram showing crosschain messaging between two blockchain networks (e.g., Ethereum and Aptos), with an arrow indicating the message flow via LayerZero Send and Receive

Introduction

LayerZero powers omnichain applications (OApps) by enabling cross‑chain messaging. These guides provide step‑by‑step instructions on deploying a simple OApp across chains—using an opinionated default configuration to ease the process. We present two variants:
  • EVM-Based: Using Hardhat (and Foundry) to deploy and wire Solidity contracts.
  • Aptos-Based: Using the Aptos CLI and Move‑VM scripts to deploy and configure your omnichain app (OFT) on Aptos alongside your EVM deployments.

Disclaimer

The Aptos CLI version used in the LayerZero devtools repo is v6.0.1. You can follow the examples and optionally try experimental builds. In the meantime, follow the examples for using the Aptos Typescript SDK to deploy and wire.