@substrate/smoldot-discovery
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published



@substrate/smoldot-discovery

npm GPL-3.0-or-later



A TypeScript package extended from the @substrate/discovery NPM package, which enables the discovery and filtering of Smoldot extension providers from a list of providers.

To be utilized by dApps, extensions should implement the SmoldotExtensionProviderDetail interface. This can be achieved by following the extension side of the discovery protocol as detailed here, and then returning the implemented interface.

Installation

You can install the package using npm or yarn:

corepack pnpm i @substrate/smoldot-discovery

Usage

Here's an example of how to use the package:

import { getSmoldotExtensionProviders } from "@substrate/smoldot-discovery"

const smoldotProviders = getSmoldotExtensionProviders()

console.log(smoldotProviders)

Readme

Keywords

none

Package Sidebar

Install

npm i @substrate/smoldot-discovery

Weekly Downloads

715

Version

2.0.2

License

MIT

Unpacked Size

63.8 kB

Total Files

21

Last publish

Collaborators

  • andreieres
  • marshacb
  • jacogr
  • kianenigma
  • joepetrowski
  • wirednkod
  • niklasad1
  • jsdw
  • paritytech-ci
  • imod7
  • jimmychu0807
  • alexandru.vasile
  • tarikgul
  • paritytech
  • ryan-parity