EVM Implementation
On EVM chains, the Endpoint Alt implementation (EndpointV2Alt) uses ERC20 tokens for fee payments instead of native ETH/gas tokens sent via msg.value.
Key Differences from Standard Endpoint
Endpoint Alt inherits all core functionality from the standard LayerZero Endpoint - including message channel management, library configuration, reentrancy protection, and message composition - but overrides the fee payment mechanism.Fee Payment Flow
The following diagrams illustrate the fee payment flow differences on EVM chains.Standard Endpoint Flow
Endpoint Alt Flow
Modified Functions (EVM)
On EVM chains,EndpointV2Alt overrides the following functions from the base EndpointV2 contract:
Integration Notes
When building on a chain that uses Endpoint Alt:EVM-Specific Notes
Checking Endpoint Type (EVM)
To determine whether an EVM chain uses the standard Endpoint or Endpoint Alt:Summary
Endpoint Alt extends the standard LayerZero Endpoint to support chains where a fungible token standard replaces the native gas token for fee payments. On EVM chains, this means using ERC20 tokens instead of native ETH/gas tokens. All other protocol guarantees - immutability, permissionless messaging, channel security, and exactly-once delivery - remain unchanged.Further Reading
- LayerZero Endpoint - Core Endpoint architecture and modules
- OFT Alt - Building OFTs on chains with Endpoint Alt