Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2020 16:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pedrouid/1e5fc9e7a5bdd8ec627c15c6c475c5fc to your computer and use it in GitHub Desktop.
WalletConnect SDK
import WalletConnect from "walletconnect";
// Create WalletConnect SDK instance
const wc = new WalletConnect();
// Connect session (triggers QR Code modal)
const connector = await wc.connect();
// Get your desired provider
const web3Provider = await wc.getWeb3Provider({
const channelProvider = await wc.getChannelProvider();
const starkwareProvider = await wc.getStarkwareProvider({
contractAddress: "<INSERT_CONTRACT_ADDRESS>",
const threeIdProvider = await wc.getThreeIdProvider();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment