forked from blocknative/web3-onboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Coinbase
Thiendekaco edited this page Apr 4, 2024
·
2 revisions
See Coinbase Wallet Developer Docs
npm i @subwallet-connect/coinbase
type CoinbaseWalletOptions = {
darkMode: boolean // default = false
}
import Onboard from '@subwallet-connect/core'
import coinbaseWalletModule from '@subwallet-connect/coinbase'
// initialize the module with options
const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true })
// can also initialize with no options...
// const coinbaseWalletSdk = coinbaseWalletModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
coinbaseWalletSdk
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)