ACP-267: Primary Network validator uptime requirement increases from 80% to 90%.Read the proposal
LayerZero

LayerZero

LayerZero is an omnichain interoperability protocol for secure, censorship-resistant, and permissionless messaging across blockchains with immutable smart contracts powering cross-chain dApps, tokens, and data transfer.

Back

Overview

LayerZero is an omnichain interoperability protocol that enables secure, censorship-resistant, and permissionless cross-chain messaging across 50+ blockchain networks. Unlike traditional bridges that rely on wrapped tokens and trusted intermediaries, LayerZero provides a low-level messaging primitive that lets smart contracts on different blockchains communicate directly.

The protocol has facilitated over $6 billion in cross-chain value and powers major DeFi protocols, NFT platforms, and blockchain applications. Its immutable smart contracts, configurable security model, and developer-friendly design make it a foundation for building applications that work natively across connected blockchains.

Features

  • Omnichain Messaging: Send messages between any connected blockchains.
  • 50+ Supported Chains: Connect Ethereum, Avalanche, BNB Chain, Arbitrum, Optimism, Polygon, Solana, and 40+ more.
  • Immutable Smart Contracts: Core protocol contracts are immutable ensuring long-term security.
  • Permissionless: Anyone can build omnichain applications without permission.
  • Configurable Security: Applications choose their own security configuration.
  • Censorship Resistant: No centralized control over message delivery.
  • Omni fungible Tokens (OFTs): Native token standard for tokens that exist across all chains.
  • Omnichain NFTs (ONFTs): NFTs that can move between blockchains.
  • Low Latency: Fast message delivery between chains.
  • Gas Efficiency: Optimized for minimal cross-chain gas costs.
  • Developer SDKs: Development tools and libraries for Solidity and TypeScript.
  • StargateFi: Largest omnichain application built on LayerZero for liquidity bridging.

Core Technology

Omnichain Messaging

LayerZero's fundamental capability is enabling smart contracts to send messages to contracts on other chains:

Direct Contract Calls: Smart contracts on one chain can call functions on contracts on other chains.

Arbitrary Payloads: Send any data structure between chains, not limited to token transfers.

Guaranteed Delivery: Messages are guaranteed to be delivered to destination chains.

Ordered Execution: Optional ordering guarantees for message sequences.

Atomic Transactions: Build atomic cross-chain transactions.

This primitive opens up new application architectures beyond simple token bridges.

Omni fungible Tokens (OFTs)

LayerZero's native token standard:

Single Native Token: One native token across all chains, not wrapped versions.

Unified Liquidity: Liquidity is unified across all chains.

No Fragmentation: Eliminates the fragmentation of wrapped token standards.

Burn and Mint: Tokens are burned on source chain and minted on destination.

Custom Logic: Token creators can add custom cross-chain logic.

ERC-20 Compatible: Fully compatible with existing ERC-20 infrastructure.

OFTs eliminate the fragmentation problems that come with wrapped token approaches.

Configurable Security

LayerZero's unique security model:

Application-Controlled: Each application configures its own security.

Oracle + Relayer: Uses independent Oracle and Relayer for message verification.

Choose Your Stack: Applications select their preferred Oracle and Relayer.

Multiple Options: Use Chainlink, Google Cloud, or custom infrastructure.

No Single Point of Failure: Separation of concerns between verification and delivery.

Immutable Core: Core protocol contracts cannot be upgraded.

This separation of concerns gives applications control over their own security tradeoffs.

Avalanche Integration

LayerZero has deep Avalanche integration:

Native Support: First-class Avalanche C-Chain integration.

AVAX Bridging: Bridge AVAX across all LayerZero-connected chains.

Avalanche DeFi: Connect Avalanche DeFi to 50+ other chains.

Fast Finality: Avalanche's sub-second finality enables quick bridging.

Low Costs: Avalanche's low transaction fees keep bridging affordable.

Growing Ecosystem: Increasing number of omnichain apps on Avalanche.

LayerZero connects Avalanche to the broader multi-chain ecosystem.

Use Cases

LayerZero enables diverse omnichain applications:

Omnichain DeFi: DeFi protocols operating natively across all chains simultaneously.

Unified Liquidity: Aggregate liquidity from multiple chains into single pools.

Omnichain NFTs: NFTs that can be moved between any blockchain.

Cross-Chain Governance: DAO governance spanning multiple blockchains.

Omnichain Gaming: Games where assets work across multiple chains.

Cross-Chain Yield: Yield strategies that work across multiple chains.

Unified Identity: Identity and reputation systems working across all chains.

Chain-Abstracted UX: Users don't need to know which chain they're on.

StargateFi

LayerZero's flagship application:

Largest Omnichain DEX: Over $4B in Total Value Locked.

Unified Liquidity Pools: Single liquidity pool across all chains.

Instant Guaranteed Finality: Transactions finalized instantly.

Native Assets: Transfer native assets without wrapped intermediaries.

Capital Efficient: No liquidity fragmentation across chains.

Built on LayerZero: Demonstrates the power of LayerZero messaging.

Stargate serves as proof of concept for what's possible with LayerZero.

Developer Experience

LayerZero provides developer tools including:

Solidity SDK: Easy-to-use Solidity contracts for building omnichain apps.

TypeScript SDK: Full-featured TypeScript library for off-chain integrations.

Documentation: Extensive guides, tutorials, and API references.

Testnet: Complete testnet environment across all supported chains.

Example Apps: Open-source example applications and templates.

LayerZero Scan: Explorer for tracking cross-chain messages.

Developer Discord: Active community with core team support.

Grants Program: Funding available for ecosystem projects.

Security Model

LayerZero's security approach:

Immutable Contracts: Core protocol contracts are immutable and cannot be upgraded.

Independent Verification: Oracle and Relayer are independent entities.

Application Control: Each app chooses its security configuration.

Multiple Audits: Audited by leading security firms including Trail of Bits.

Bug Bounty: Active bug bounty program through Immunefi.

Battle-Tested: Billions in value transferred through the protocol.

Monitoring: Continuous monitoring of cross-chain activity.

Ecosystem

Major projects building on LayerZero:

DeFi: Stargate, Radiant Capital, Sushiswap, and dozens of DeFi protocols.

NFTs: Pudgy Penguins, Gh0stly Gh0sts, and major NFT collections.

Gaming: Blockchain games with omnichain assets.

Infrastructure: Chainlink, Google Cloud providing Oracle services.

Bridges: Multiple bridge applications powered by LayerZero.

These projects demonstrate LayerZero's production readiness across different use cases.

Getting Started

To build with LayerZero:

  1. Read Documentation: Start at docs.layerzero.network for guides and API references.

  2. Install SDK:

    npm install @layerzerolabs/solidity-examples
  3. Inherit LayerZero Contracts: Your contracts inherit from LayerZero base contracts.

  4. Implement Cross-Chain Logic: Define what happens when messages are received.

  5. Deploy to Testnet: Test your omnichain app on LayerZero testnet.

  6. Configure Security: Choose Oracle and Relayer for your application.

  7. Launch: Deploy your omnichain application to mainnet.

Architecture

LayerZero's architecture consists of:

Endpoint Contracts: Deployed on each chain, handle message sending/receiving.

Oracle: Independent entity verifying block headers between chains.

Relayer: Independent entity delivering message proofs.

Applications: Your smart contracts building on LayerZero.

Off-Chain Infrastructure: APIs and services supporting the network.

This modular design keeps verification and delivery independent of each other.

LayerZero V2

The next evolution of the protocol:

Enhanced Security: Improved security model with more configuration options.

Better Gas Efficiency: Reduced costs for cross-chain messaging.

More Chains: Expanded chain support including non-EVM chains.

Improved UX: Better developer and user experience.

Backwards Compatible: Existing V1 apps continue working.

Existing V1 apps continue working without changes.

Pricing

LayerZero costs:

  • Message Fees: Small fees for cross-chain messages (typically $1-5)
  • Gas Costs: Native gas on source and destination chains
  • Oracle Fees: Fees paid to Oracle for block header verification
  • Relayer Fees: Fees paid to Relayer for message delivery
  • No Platform Fees: No fees to LayerZero Labs

All fees are transparent and paid per message.

Competitive Advantages

Omnichain Native: Built from ground up for omnichain applications, not retrofitted.

Configurable Security: Applications control their own security model.

Immutable Core: Core contracts cannot be upgraded, ensuring long-term stability.

Proven at Scale: Over $6B in value transferred, battle-tested.

50+ Chains: Wide chain coverage including EVM and non-EVM networks.

Developer-Friendly: Excellent documentation and tooling.

Active Ecosystem: Growing ecosystem of applications and protocols.

Native Tokens: OFT standard eliminates wrapped token fragmentation.

Community and Governance

LayerZero community features:

Discord: Active community with 100,000+ members.

Twitter: Regular updates and ecosystem highlights.

Documentation: Continuously updated guides and tutorials.

Hackathons: Regular hackathons with prizes.

Grants: Funding for ecosystem projects.

Governance: Community input on protocol direction.

Audits and Security

LayerZero security measures:

  • Audited by Trail of Bits, Zellic, and other top firms
  • Continuous security assessments
  • Active bug bounty program
  • Immutable core contracts
  • Independent Oracle and Relayer verification
  • Real-time monitoring systems

Support

LayerZero provides support through:

  • Technical Documentation: Extensive docs and guides
  • Discord Support: Active community and core team
  • Developer Workshops: Regular educational sessions
  • Office Hours: Weekly community calls
  • GitHub: Open-source code and examples
  • LayerZero Scan: Transaction explorer and debugging tools

Is this guide helpful?

Developer:

LayerZero Labs

Categories:

Crosschain Solutions

Available For:

C-Chain

Website:

https://layerzero.network/

Documentation:

https://docs.layerzero.network/