0.1.7 • Published 12 months ago
@polkadot-api/sm-provider v0.1.7
@polkadot-api/sm-provider
JsonRpcProvider to connect to a chain via Smoldot.
function getSmProvider(
chain: smoldot.Chain | Promise<smoldot.Chain>,
): JsonRpcProviderThe parameter it takes is a Chain from smoldot, the return value of calling smoldot.addChain(..)