Package Exports
- @walletconnect/web3-subprovider
- @walletconnect/web3-subprovider/dist/cjs/index.js
- @walletconnect/web3-subprovider/dist/esm/index.js
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);