Packages
@web3-onboard/gnosis
Wallet module for connecting Gnosis Safe to web3-onboard
Install
- Yarn
- Npm
terminal
yarn add @web3-onboard/gnosis
terminal
npm install @web3-onboard/gnosis
Options
type GnosisOptions = {
whitelistedDomains: RegExp[]
}
Usage
import Onboard from '@web3-onboard/core'
import gnosisModule from '@web3-onboard/gnosis'
const gnosis = gnosisModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
gnosis
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)