npm.io
0.3.9 • Published 1 week ago

@polkadot-api/sm-provider

Licence
MIT
Version
0.3.9
Deps
2
Size
9 kB
Vulns
0
Weekly
0
Stars
157

@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(..)