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 testsyarn examples
to run the integration testsThe examples are automated ports of the samples from the getting started guide.
Version | Tag | Published |
---|---|---|
0.0.1 | latest | 2yrs ago |