Skip to content

isabella232/walletconnect-provider

 
 

Repository files navigation

walletconnect-provider

Build Status

WalletConnect provider to connect Matic Network

Installation

$ npm install --save @maticnetwork/walletconnect-provider

Usage

Create network providers by instantiating provider objects.

import WalletConnectProvider from "@maticnetwork/walletconnect-provider"

// ropsten provider
const ropstenProvider = new WalletConnectProvider({
  host: "https://ropsten.infura.io/v3/<your-infura-api-key>",
  callbacks: {
    onConnect: () => {
      // connected
    },
    onDisconnect: () => {}
  }
})

// createm matic testnet provider
const maticTestnetProvider = new WalletConnectProvider({
  host: "https://testnet2.matic.network",
  onConnect: () => {
    // connected
  },
  onDisconnect: () => {}
})

License

MIT

About

WalletConnect provider to connect Matic Network

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.8%
  • JavaScript 10.2%