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

<CardGroup cols={2}>
  <Card title="DVN Overview" icon="book" href="/v2/workers/off-chain/dvn-overview">
    Understand how DVNs work and your options for operating one.
  </Card>

  <Card title="Gasolina DVN" icon="gas-pump" href="/v2/workers/off-chain/gasolina-overview">
    Run a DVN with simplified gas management via Gasolina.
  </Card>
</CardGroup>

***

## Build Custom Workers

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

<CardGroup cols={2}>
  <Card title="Build DVNs" icon="wrench" href="/v2/workers/off-chain/build-dvns">
    Technical guide for implementing a custom DVN from scratch.
  </Card>

  <Card title="Build Executor" icon="bolt" href="/v2/workers/off-chain/build-executors">
    Technical guide for implementing a custom Executor.
  </Card>
</CardGroup>

***

## Resources

### Technical Reference

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

### Guides

* [Gasolina Implementation Guide](/v2/workers/off-chain/gasolina-implementation) - Deploy Gasolina on AWS or GCP
* [Troubleshooting](/v2/workers/off-chain/dvn-troubleshooting) - 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.
