Core Concepts for Omnichain Applications
LayerZero’s Omnichain Application (OApp) standard defines a generic cross-chain messaging interface that allows developers to build applications which send and receive arbitrary data across multiple blockchain networks.
Although implementations differ between Developer VMs, they share the following core concepts:
Generic Message Passing
-
Send & receive interface:
An OApp provides interface methods to send messages (by encoding data into a payload) and receive messages (by decoding that payload and executing business logic) via the LayerZero protocol. This abstraction lets you use the same messaging pattern for a variety of use cases (e.g., DeFi, DAOs, NFT transfers). -
Custom logic on receipt:
Each OApp is designed so that developers can plug in their application-specific logic into the message‐handling functions. Whether you’re transferring tokens, votes, or some other data-type, the core design remains the same.
Quoting and Payment
-
Dynamic fee estimation:
The standard provides a mechanism to quote the required service fees for sending a cross-chain message in both the native chain token and in the protocol token, ZRO. This quote must match the gas or fee requirements at the time of sending. -
Bundled fee model:
The fee paid on the source chain covers all costs: the native chain gas cost and fees for the service workers handling the transaction on the destination chain (e.g., Decentralized Verifier Networks and Executors). This unified fee model simplifies cross-chain transactions for developers and users alike.