@layerzerolabs/lz-v2-stellar-sdkprovides clients for protocol, worker, and view contracts.@layerzerolabs/oft-stellar-typesprovides the standard OFT client and its OApp methods.@layerzerolabs/sac-manager-stellar-typesprovides the standard SAC Manager client.
Client extends ContractClient from @stellar/stellar-sdk/contract, providing typed methods for the corresponding Soroban contract.
Installation
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 exportClient directly:
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
- OFT Overview — OFT architecture and deployment guide
- OApp Overview — Base messaging standard
- DVN/Executor Config — Security stack configuration
- Technical Overview — Stellar architecture fundamentals