How to use web3modal - 1 common examples

To help you get started, we’ve selected a few web3modal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github decentraland / explorer / kernel / packages / shared / ethereum / Web3Connector.ts View on Github external
constructor() {
    this.web3Modal = new Web3Modal({
      network: 'ropsten', // 'mainnet',
      cacheProvider: true,
      providerOptions: {
        fortmatic: {
          package: Fortmatic,
          options: {
            key: 'pk_test_A8AD7DB2F40251E7'
          }
        }
      }
    })
  }

web3modal

A single Web3 / Ethereum provider solution for all Wallets

Apache-2.0
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis

Popular web3modal functions