Torus
Wallet module for connecting Torus wallet to web3-onboard

@web3-onboard/torus

Install

npm i @web3-onboard/torus

Options

See the Torus Docs for the extensive list of options

Usage

1
import Onboard from '@web3-onboard/core'
2
import torusModule from '@web3-onboard/torus'
3
4
const torus = torusModule()
5
6
const onboard = Onboard({
7
// ... other Onboard options
8
wallets: [
9
torus
10
//... other wallets
11
]
12
})
13
14
const connectedWallets = await onboard.connectWallet()
15
console.log(connectedWallets)
Copied!