Skip to main content
LayerZero’s universal messaging protocol enables any blockchain that supports state propagation and events to participate in crosschain communication — including Stellar. LayerZero provides Stellar Soroban contracts that can communicate with the equivalent Solidity Contract Libraries deployed on EVM chains.
If you’re new to LayerZero, we recommend reviewing “What is LayerZero?” before continuing.

Differences from the Ethereum Virtual Machine

Stellar’s Soroban smart contract platform differs from the EVM in several fundamental ways. This section covers the key differences you’ll encounter when building LayerZero applications on Stellar:

Comparison Table

Authorization Model

In Solidity, you check msg.sender to verify who called a function. Soroban uses a fundamentally different approach — the Soroban Authorization Framework:
In Soroban, the caller explicitly authorizes the action. This works with both contract-to-contract calls and user wallets, and supports batched authorization across multiple calls in a single transaction.

Trait Composition vs Inheritance

Solidity uses inheritance to build contract hierarchies (contract MyOFT is OFT). Soroban uses trait composition with proc macros:
The #[oapp] macro generates implementations for OAppCore, OAppReceiver, OAppSenderInternal, and OAppOptionsType3. You can customize specific traits using #[oapp(custom = [receiver])].

Storage Model

Soroban has three storage tiers with different costs and lifetimes:
All Soroban storage entries have a Time-To-Live (TTL). If a persistent entry’s TTL expires, it becomes archived and must be restored before it can be read. LayerZero contracts automatically manage TTL extension for critical storage entries.

Native Fee Payment

On EVM, LayerZero fees are paid via msg.value. On Stellar, fees are paid by explicitly transferring the native token (XLM) to the Endpoint before calling send:
This is handled internally by the OApp base contract — you don’t need to manage fee transfers manually.

Next Steps

  • Technical Overview: Deep dive into Soroban’s architecture, protocol lifecycle, and how it affects LayerZero development.
  • Build an OApp: Create your first Omnichain Application on Stellar.
  • Build an OFT: Deploy an Omnichain Fungible Token with SEP-41 integration.
  • Troubleshooting: Common errors and how to resolve them.