@polkadot-api/sm-provider
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@polkadot-api/sm-provider

JsonRpcProvider to connect to a chain via Smoldot.

function getSmProvider(
  chain: smoldot.Chain | Promise<smoldot.Chain>,
): JsonRpcProvider

The parameter it takes is a Chain from smoldot, the return value of calling smoldot.addChain(..)

Readme

Keywords

none

Package Sidebar

Install

npm i @polkadot-api/sm-provider

Weekly Downloads

3,529

Version

0.1.7

License

MIT

Unpacked Size

11.3 kB

Total Files

10

Last publish

Collaborators

  • voliva
  • josepot