WalletConnect SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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({ | |
infuraId: "<INSERT_INFURA_APP_ID>", | |
}); | |
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