npm i @substrate/smoldot-provider
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.


Run Wasm Light Clients of any Substrate based chain directly in your browser.

by paritytech

0.0.1 (see all)License:GPL-3.0-onlyTypeScript:Built-In
npm i @substrate/smoldot-provider

Polkadot JS Provider for Smoldot Light Client

This is a prototype for using @polkadot/api with the smoldot WASM light client. It is not published to npm.


import { ApiPromise } from '@polkadot/api';
import westend_specs as chainSpec from './examples/westend_specs';
import { SmoldotProvider } from './';

const provider = new SmoldotProvider(chainSpec());
await provider.connect();
const api = await ApiPromise.create({ provider });

See the examples for examples of how to interact with the API.


  • yarn test to run the unit tests
  • yarn examples to run the integration tests

The examples are automated ports of the samples from the getting started guide.

No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

No reviews found
Be the first to rate