Network Configuration
The SDK provides pre-configured network settings for different environments. Understanding how to configure these properly is essential for connecting to the correct chain.Built-in Networks
The SDK includes two pre-configured networks:- Staging (Testnet)
- Mainnet (Production)
Use staging for development and testing:
Custom Network Configuration
For advanced use cases, you can create a custom network configuration with your own RPC endpoints.IndexerConfig
The Indexer provides read-only access to market data and account information:ValidatorConfig
The Validator handles transaction submission and blockchain queries:Chain Configuration Reference
Staging Network
| Property | Value |
|---|---|
| Chain ID | lfg-staging-1 |
| Address Prefix | lfg |
| Indexer REST | https://indexer-staging.lfg.land/v4 |
| Indexer WebSocket | wss://indexer-staging.lfg.land/v4/ws |
| RPC Endpoint | https://rpc-staging.lfg.land |
| USDC Decimals | 6 |
Mainnet Network
| Property | Value |
|---|---|
| Chain ID | lfg-mainnet-1 |
| Address Prefix | lfg |
| Indexer REST | https://indexer.lfg.land/v4 |
| Indexer WebSocket | wss://indexer.lfg.land/v4/ws |
| RPC Endpoint | https://rpc.lfg.land |
| USDC Decimals | 6 |
Next Steps
Wallets & Subaccounts
Learn how to manage wallets and subaccounts
Place Orders
Start trading with the SDK
CompositeClient Reference
Explore the full CompositeClient API
Network Reference
Detailed Network class documentation