Skip to main content
LayerZero’s Stellar TypeScript bindings are split across three packages:
  • @layerzerolabs/lz-v2-stellar-sdk provides clients for protocol, worker, and view contracts.
  • @layerzerolabs/oft-stellar-types provides the standard OFT client and its OApp methods.
  • @layerzerolabs/sac-manager-stellar-types provides the standard SAC Manager client.
Each generated Client extends ContractClient from @stellar/stellar-sdk/contract, providing typed methods for the corresponding Soroban contract.
Import clients only from the package roots shown below. The generated/* deep imports are not public package exports, and the core SDK no longer exports the OFT or SAC Manager clients.

Installation

Install the application-specific bindings you use:

Client Initialization

All generated clients use the same initialization options, but their import styles differ. The protocol SDK exposes each contract as a namespace, while the OFT and SAC Manager packages export Client directly:
All generated clients accept the same ContractClientOptions:
The basicNodeSigner(keypair, networkPassphrase) helper from @stellar/stellar-sdk/contract provides both signTransaction and signAuthEntry. For custom signing flows (e.g., hardware wallets), provide these fields directly.

Available Clients

Import protocol clients by their namespace export:

Core Methods Reference

OFT Client

The OFT client provides methods for crosschain token transfers and OFT management.

Token Operations

Configuration

Rate Limiting

Fee Management

Pause Control

Ownership

Queries

TTL Management

Endpoint Client

The Endpoint client provides core LayerZero messaging functionality.

Messaging

Compose

Library Management

Nonce and State

Library Registration

ULN-302 Client

The ULN-302 client configures the Ultra Light Node message verification library.

Send Configuration

Receive Configuration

Executor Configuration

Verification

Queries

Next Steps