Last active
August 21, 2019 21:45
-
-
Save petejkim/cd312b4c9adb701c949af104c52df205 to your computer and use it in GitHub Desktop.
WalletLink Snippet
This file contains hidden or 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 WalletLink from "walletlink" | |
import Web3 from "web3" | |
export const WalletLink = new WalletLink({ | |
appName: "My Awesome DApp", | |
appLogoUrl: "https://example.com/logo.png" | |
}) | |
export const ethereum = walletLink.makeWeb3Provider( | |
"https://mainnet.infura.io/v3/INFURA_API_KEY", 1 | |
) | |
export const web3 = new Web3(ethereum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment