dustyrhode / For-the-love-of-Riri

Some money and love if at all
1 stars 0 forks source link

Sum #10

Open dustyrhode opened 3 years ago

dustyrhode commented 3 years ago

TypeScript import WalletLink from 'walletlink' import Web3 from 'web3' const APP_NAME = 'My Awesome App' const APP_LOGO_URL = 'https://example.com/logo.png' const ETH_JSONRPC_URL = 'https://mainnet.infura.io/v3/' const CHAIN_ID = 1 // Initialize WalletLink export const walletLink = new WalletLink({ appName: APP_NAME, appLogoUrl: APP_LOGO_URL, darkMode: false }) // Initialize a Web3 Provider object export const ethereum = walletLink.makeWeb3Provider(ETH_JSONRPC_URL, CHAIN_ID) // Initialize a Web3 object export const web3 = new Web3(ethereum as any