> ## 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.

# Workers in LayerZero V2

> Learn about Workers in LayerZero V2, including Decentralized Verifier Networks (DVNs) and Executors that power cross-chain messaging and execution.

In the LayerZero V2 protocol, **Workers** serve as the umbrella term for two key types of service providers: **Decentralized Verifier Networks (DVNs)** and **Executors**.

Both play crucial roles in facilitating crosschain messaging and execution by providing verification and execution services. By abstracting these roles under the common interface known as a `worker`, LayerZero ensures a consistent and secure method to interact with both service types.

## What Are Workers?

**Workers** are specialized entities that interact with the protocol to perform essential functions:

* **Verification as a Service:** Decentralized Verifier Networks (DVNs) verify the authenticity and correctness of messages across chains.

* **Execution as a Service:** Executors carry out transactions on behalf of applications once verification is complete.

These roles are unified under the Worker interface, meaning that whether a service provider is a DVN or an Executor, it interacts with the protocol using a standardized set of methods.

***

## For DVN Operators

If you're looking to operate a DVN, these resources will help you understand the architecture and implementation options.

> [card] [DVN Overview](https://docs.layerzero.network/v2/workers/off-chain/dvn-overview.md)
>
> Understand how DVNs work and your options for operating one.

> [card] [Gasolina DVN](https://docs.layerzero.network/v2/workers/off-chain/gasolina-overview.md)
>
> Run a DVN with simplified gas management via Gasolina.

***

## Build Custom Workers

For developers building their own DVN or Executor from scratch, these guides cover the technical implementation details.

> [card] [Build DVNs](https://docs.layerzero.network/v2/workers/off-chain/build-dvns.md)
>
> Technical guide for implementing a custom DVN from scratch.

> [card] [Build Executor](https://docs.layerzero.network/v2/workers/off-chain/build-executors.md)
>
> Technical guide for implementing a custom Executor.

***

## Resources

### Technical Reference

* [DVN Technical Reference](https://docs.layerzero.network/v2/workers/off-chain/dvn-technical-reference.md) - Contract methods, events, and error signatures
* [Gasolina API Reference](https://docs.layerzero.network/v2/workers/off-chain/gasolina-api-reference.md) - REST API documentation for Gasolina

### Guides

* [Gasolina Implementation Guide](https://docs.layerzero.network/v2/workers/off-chain/gasolina-implementation.md) - Deploy Gasolina on AWS or GCP
* [Troubleshooting](https://docs.layerzero.network/v2/workers/off-chain/dvn-troubleshooting.md) - Diagnose and fix common DVN issues

### External Links

* [gasolina-aws](https://github.com/LayerZero-Labs/gasolina-aws) - AWS CDK infrastructure
* [gasolina-gcp](https://github.com/LayerZero-Labs/gasolina-gcp) - GCP Terraform infrastructure
* [DVN Contract Source](https://github.com/LayerZero-Labs/LayerZero-v2/blob/main/packages/layerzero-v2/evm/messagelib/contracts/uln/dvn/DVN.sol) - Reference implementation

***

This architecture allows LayerZero V2 to provide robust, decentralized crosschain communication while giving application developers the tools needed to fine-tune their security and operational parameters.
