Skip to main content
Every Cascade operation starts with a client. The createLumeraClient factory connects to the Lumera Protocol blockchain and configures the SuperNode API client in one call. This page shows how to build the client with each supported signer and how to point it at any network.

Chain configuration

Keplr and Leap require a chain configuration to register the Lumera network. Define it once and reuse it.
chain-config.ts

Choose a signer

The client accepts any signer that provides signDirect, signAmino, and signArbitrary. The signArbitrary method produces ADR-036 signatures, the Cosmos standard for signing arbitrary offline data. Cascade uses those signatures to authenticate with SuperNodes.

Browser with Keplr

keplr-client.ts

Browser with Leap

Leap’s getOfflineSignerAuto covers getAccounts, signAmino, and signDirect. You only add signArbitrary.
leap-client.ts

Node.js with a mnemonic

In Node.js you build the signer from a mnemonic. You need a Direct signer for transaction signing and an Amino signer for signArbitrary.
node-client.ts
Never hardcode mnemonics. Use environment variables or a secrets manager.

Configuration options

Set gasPrice to 0.025ulume. That is the minimum gas price on both networks.

Presets

The public mainnet RPC and LCD endpoints are coming soon. Use the testnet preset while you build and test.

Custom endpoints

Pass explicit endpoints for local development or self-hosted nodes.

Client structure

Once created, the client exposes two primary sub-clients.

Go client

The Go SDK follows the same shape. The lumerasdk.New entry point takes a config and a keyring, then surfaces client.Blockchain for chain queries and client.Cascade for storage.
main.go
See Go SDK for uploads, downloads, and event subscriptions in Go.

Next steps

Upload lifecycle

See every phase of an upload in detail.

Error handling

Diagnose failures and tune retries and timeouts.

Browser app guide

Build a browser upload app with Keplr.