Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @walletconnect/web3-subprovider with all npm packages installed. Try it out:

var web3Subprovider = require("@walletconnect/web3-subprovider")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@walletconnect/web3-subprovider v1.3.1

Web3 Subprovider for WalletConnect

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);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free