> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerzero.network/llms.txt
> Use this file to discover all available pages before exploring further.

# LayerZero Endpoint V2 Examples and Developer Tooling

> Use Endpoint  Examples and Developer Tooling with LayerZero V2. Developer tools for building and debugging omnichain applications. LayerZero enables...

The Devtools repository’s **Examples** directory contains ready‑to‑use, audited LayerZero Endpoint V2 smart contracts for use on multiple chains. For each example, you can find a README with relevant installation steps, deployment tasks, and configuration logic to get started using these LayerZero boilerplate contracts.

## LayerZero V2 Contract Examples

Below you can find all of the supported smart contract examples in [LayerZero Devtools](https://github.com/LayerZero-Labs/devtools).

### LayerZero Endpoint V2 Solidity Contract Examples (EVM)

These contracts work out of the box on all EVM equivalent chains.

* **OApp** — Omnichain message passing boilerplate

  > See: `examples/oapp`

* **OFT** — Omnichain Fungible Token, mint and burn style ERC20 contract

  > See: `examples/oft`

* **OFT Adapter** - Omnichain Fungible Token, lockbox style contract for ERC20 interface

  > See: `examples/oft-adapter`

* **ONFT721** — Omnichain Non‑Fungible Token standard for ERC721 NFTs

  > See: `examples/onft721`

* **OApp Read** - simple LayerZero Read template for reading a public state variable

  > See: `examples/oapp-read`

* **Read View Pure** - simple LayerZero Read template for reading more complex data structures and functions
  > See: `examples/view-pure-read`

### LayerZero Endpoint V2 Solidity Contract Example Variants (EVM)

These contract examples have niche changes for specific VM or application-specific requirements.

* **Mint and Burn OFT Adapter** - use a deployed ERC20 token's `mint` and `burn` methods when debiting and crediting the OFT contract

  > See: `examples/mint-burn-oft-adapter`

* **Native OFT Adapter** — turn a chain's native gas token into an Omnichain Fungible Token

  > See: `examples/native-oft-adapter`

* **Upgradeable OFT** - an upgradeable OFT example using the Transparent Upgradeable Proxy pattern

  > See: `examples/oft-upgradeable`

* **ONFT721 zkSync** - a variant repo of the ONFT721 example that shows how to deploy to zkSync elastic chains

  > See: `examples/onft721-zksync`

* **Uniswap V3 Read** - a more advanced LayerZero Read template for reading non-view or pure functions
  > See: `examples/uniswap-read`

### LayerZero Endpoint V2 Solana Program Examples

These programs work out of the box on SVM equivalent chains.

* **OFT Solana** — a Solana program that conforms to the Omnichain Fungible Token standard using the SPL/Token2022 standard

  > See: `examples/oft-solana`

### LayerZero Endpoint V2 Solana Program Example Variants

These program examples have niche changes for specific VM or application-specific requirements.

* **LzApp-Migration** — a Solana program that conforms to the Omnichain Fungible Token standard for Endpoint V1 using the SPL/Token2022 standard

  > See: `examples/lzapp-migration`

### LayerZero Endpoint V2 Aptos Move Examples

These programs work out of the box on Aptos Move equivalent chains.

* **OApp Aptos Move** — Omnichain message passing boilerplate for Aptos VM

  > See: `examples/oapp-aptos-move`

* **OFT Aptos Move** — Omnichain Fungible Token, mint and burn style contract using Aptos' Fungible Asset standard

  > See: `examples/oft-aptos-move`

* **OFT Adapter** - Omnichain Fungible Token, lockbox style contract using Aptos' Fungible Asset standard
  > See: `examples/oft-adapter-aptos-move`

### LayerZero Endpoint V2 Aptos Move Example Variants

These module examples have niche changes for specific VM or application-specific requirements.

* **OFT Initia** - equivalent to Aptos Move OFT, except setup for the Initiad SDK.

  > See: `examples/oft-initia`

* **OFT Adapter initia** - equivalent to Aptos Move OFT Adapter, except setup for the Initiad SDK.
  > See: `examples/oft-adapter-initia`
