How to use the @polkadot/rpc-provider/defaults.WS_URL function in @polkadot/rpc-provider

To help you get started, we’ve selected a few @polkadot/rpc-provider examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / apps / packages / react-api / src / Api.tsx View on Github external
    const setApiUrl = (url: string = defaults.WS_URL): void =>
      setApi(new WsProvider(url));

@polkadot/rpc-provider

Transport providers for the API

Apache-2.0
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages