npm.io
0.3.8 • Published yesterday

@polkadot-api/sm-provider

Licence
MIT
Version
0.3.8
Deps
2
Size
9 kB
Vulns
0
Weekly
0
Stars
155

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