> For the complete documentation index, see [llms.txt](https://docs.pharos.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pharos.xyz/tooling-and-infrastructure/cross-chain/layerzero.md).

# LayerZero

## Overview

LayerZero provides omnichain messaging infrastructure that allows smart contracts to communicate across different blockchain networks.

On Pharos, LayerZero enables developers to build applications that send messages and transfer assets across multiple chains, with configurable security through Decentralized Verifier Networks (DVNs).

## Network Configuration

LayerZero is available on Pacific Mainnet with the following configuration:

### Core Parameters

| Parameter         | Value   |
| ----------------- | ------- |
| Chain Key         | pharos  |
| Stage             | mainnet |
| Endpoint ID (EID) | 30407   |

### Endpoint V2 Contracts

| Contract          | Address                                    |
| ----------------- | ------------------------------------------ |
| endpointV2        | 0x6F475642a6e85809B1c36Fa62763669b1b48DD5B |
| sendUln302        | 0xC39161c743D0307EB9BCc9FEF03eeb9Dc4802de7 |
| receiveUln302     | 0xe1844c5D63a9543023008D332Bd3d2e6f1FE1043 |
| blockedMessageLib | 0xc1ce56b2099ca68720592583c7984cab4b6d7e7a |
| executor          | 0x4208D6E27538189bB48E603D6123A94b8Abe0A0b |

## When to Use LayerZero

LayerZero is typically used for:

* Sending messages across chains
* Building omnichain applications
* Coordinating contract logic across multiple networks
* Use cases requiring flexible security configuration via DVNs

## Integration Notes

* Use Endpoint V2 contracts to send and receive cross-chain messages
* Configure DVNs based on your application's security requirements
* Suitable for applications that require customizable cross-chain messaging

## Metadata API

LayerZero provides metadata APIs to query deployments and configuration details.

* **Deployments:**\
  <https://metadata.layerzero-api.com/v1/metadata/deployments>
* **DVN Providers:**\
  <https://metadata.layerzero-api.com/v1/metadata/dvns>
* **Example (Ethereum DVNs):**\
  <https://metadata.layerzero-api.com/v1/metadata/dvns?chainNames=ethereum>

## Next Steps

* Configure your contracts to interact with LayerZero endpoints
* Select appropriate DVNs for your use case
* Test cross-chain messaging flows across supported networks


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pharos.xyz/tooling-and-infrastructure/cross-chain/layerzero.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
