Skip to main content
The LayerZero Endpoint Alt is a variant of the LayerZero Endpoint designed for chains where a fungible token standard (rather than the chain’s native gas token) serves as the currency for LayerZero fee payments. While the standard Endpoint processes fees via the chain’s native token, Endpoint Alt accepts fees through token transfers using the chain’s fungible token standard. This enables LayerZero to support chains where the native gas token has no economic value or where a different token is used as the primary currency.

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