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.
Chain Configuration
Both Keplr and Leap require a chain configuration to register the Lumera network. Define it once and reuse it:
Browser with Keplr Wallet
Browser with Leap Wallet
Node.js with Mnemonic
In Node.js you need a Direct signer for transaction signing and an Amino signer for signArbitrary, which Cascade uses for Supernode authentication:
Security: Never hardcode mnemonics. Use environment variables or a secrets manager.
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: