Packages
@web3-onboard/torus
Wallet module for connecting Torus wallet to web3-onboard
Install
- Yarn
- Npm
terminal
yarn add @web3-onboard/torus
terminal
npm install @web3-onboard/torus
Options
See the Torus Docs for the extensive list of options
Usage
import Onboard from '@web3-onboard/core'
import torusModule from '@web3-onboard/torus'
const torus = torusModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
torus
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)