This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@substrate/smoldot-provider
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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.

Usage

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.

Testing

  • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @substrate/smoldot-provider

Weekly Downloads

4

Version

0.0.1

License

GPL-3.0-only

Unpacked Size

203 kB

Total Files

40

Last publish

Collaborators

  • ryan-parity
  • paritytech
  • tarikgul
  • marshacb
  • imod7
  • alexandru.vasile
  • jimmychu0807
  • paritytech-ci
  • andreieres
  • jacogr
  • kianenigma
  • joepetrowski
  • jeluard
  • wirednkod
  • niklasad1
  • jsdw