Getting Started
Client Setup
Initialize the Lumera client for browser and Node.js environments.
Creating a Client
The createLumeraClient factory is the entry point for all Cascade operations. It connects to the Lumera blockchain and configures the Supernode API client.
Browser with Keplr Wallet
Browser with Leap Wallet
Node.js with Mnemonic
Security: Never hardcode mnemonics. Use environment variables or a secrets manager. For browser apps, always use wallet extensions (Keplr/Leap) which keep private keys in the extension sandbox.
Client Configuration Options
Presets
| Preset | Chain ID | RPC | LCD | SN-API |
|---|---|---|---|---|
testnet | lumera-testnet-2 | https://rpc.testnet.lumera.io | https://lcd.testnet.lumera.io | https://snapi.testnet.lumera.io |
mainnet | lumera-mainnet-1 | https://rpc.lumera.io | https://lcd.lumera.io | https://snapi.lumera.io |
Custom Endpoints
For local development or self-hosted nodes:
Client Structure
Once created, the client exposes two primary sub-clients: