JSPM

@walletconnect/web3-subprovider

1.0.0-beta.46
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 78
  • Score
    100M100P100Q10313F
  • License LGPL-3.0

Web3 Subprovider for WalletConnect

Package Exports

  • @walletconnect/web3-subprovider

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@walletconnect/web3-subprovider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

WalletConnect Web3 Subprovider

Web3 Subprovider for WalletConnect

For more details, read the documentation

Example

import Web3 from "web3";
import ProviderEngine from "web3-provider-engine";
import WalletConnectSubprovider from "@walletconnect/web3-subprovider";

const engine = new ProviderEngine();

// Add other subproviders
engine.addProvider(...);

engine.addProvider(
  new WalletConnectSubprovider({
    bridge: "https://bridge.walletconnect.org" // Required
  })
);

engine.start();

const web3 = new Web3(engine);