How to use walletlink - 1 common examples

To help you get started, we’ve selected a few walletlink 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 airswap / AirSwap.js / src / wallet / redux / middleware.js View on Github external
function connectWalletLink(store) {
  const walletLink = new WalletLink({
    appName: process.env.REACT_APP_NAME || 'AirSwap',
    appLogoUrl: AIRSWAP_LOGO_URL,
  })

  const provider = walletLink.makeWeb3Provider(NODESMITH_GETH_NODE, NETWORK)
  provider.enable().then(() => {
    signer = getSigner({ web3Provider: provider }, walletActions)
    const addressPromise = signer.getAddress()
    addressPromise
      .then(address => {
        store.dispatch(connectedWallet('walletLink', address.toLowerCase()))
      })
      .catch(e => store.dispatch(errorConnectingWallet(e)))
  })
}

walletlink

WalletLink JavaScript SDK

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular walletlink functions