Skip to main content
This page lists the public surface of @lumera-protocol/sdk-js. For a guided start see the JavaScript SDK page.

createLumeraClient

The factory function that builds a configured client.
Returns Promise<LumeraClient>. The signer needs signDirect, signAmino, and signArbitrary for the full feature set. See wallet options.

Cascade uploader

uploadFile

Runs the whole upload in one call. Prepare, register on chain, and send to SuperNodes.
Returns a result with action_id, the permanent on-chain reference to the file.

Lower level upload steps

Use these when you need control over individual phases. sendFileToSupernodes retries up to 5 times with 3 second delays to absorb SN-API indexing lag.

Cascade downloader

Every download authenticates with an ADR-036 signature over the action ID. The download lifecycle page shows how to consume the stream.

Blockchain queries

Chain parameter queries are cached for 5 minutes.

Wallet helpers

LEP-1 helpers

For deterministic layout and ID work that must match on-chain validation.
The erasure coding page explains the derivation scheme these helpers implement.

Task status values

The SDK reports task progress with these statuses. On-chain action states are separate. They move from PENDING to PROCESSING to DONE or FAILED. See error handling for recovery patterns.

Next steps

JavaScript SDK getting started

Install, connect a wallet, and run your first upload.

Error handling

Handle every failure mode with working code.