Skip to main content
The LayerZero Protocol on Starknet consists of Cairo contracts designed to facilitate the secure movement of data, tokens, and digital assets between different blockchain environments. LayerZero provides Starknet Cairo Contracts that can communicate directly with the equivalent Solidity Contract Libraries and other blockchain implementations deployed across supported chains.

Starknet and LayerZero

Starknet uses the Cairo programming language and employs a unique execution model based on account abstraction (all accounts are smart contracts) and the dispatcher pattern (typed cross-contract calls via generated interfaces) to achieve crosschain functionality.

Starknet Cairo Contracts

Getting Started on Starknet

Learn how the LayerZero V2 Protocol operates on Starknet, including prerequisites and key concepts.

Technical Overview

Deep dive into Starknet account abstraction, Cairo fundamentals, and dispatcher patterns.

OApp Reference

Build the contracts necessary for sending arbitrary data and external function calls crosschain on Starknet.

OFT Contract

Create and send Omnichain Fungible Tokens (OFTs) on the Starknet blockchain.

Starknet Protocol Configurations

Configure Security Stack

Configure which decentralized verifier networks (DVNs) secure your messages.

Configure Executor

Configure who executes your messages on the destination chain.

Set Execution Options

Set the amount of gas to deliver to the destination chain.

Starknet contract deployment requires native Starknet tooling (sncast). See the Technical Reference for deployment instructions.

Tooling and Resources

Starknet development relies on the Cairo programming language and the Starknet CLI tools. For comprehensive information, see the Starknet Documentation. LayerZero provides developer tooling to simplify the contract development, testing, and deployment process: LayerZero Scan: a comprehensive block explorer, search, API, and analytics platform for tracking and debugging your omnichain transactions. Development Tools:
  • Scarb - Cairo build tool and package manager
  • sncast - CLI for declaring and deploying contracts
  • snforge - Testing framework for Cairo contracts (analogous to Foundry’s forge in the EVM world)
You can also ask for help or follow development in the Discord.