@web3-onboard/coinbase
Wallet module for connecting Coinbase Wallet SDK to web3-onboard
See Coinbase Wallet Developer Docs
Install
npm i @web3-onboard/coinbase
Options
type CoinbaseWalletOptions = {
darkMode?: boolean
enableMobileWalletLink?: boolean
reloadOnDisconnect?: boolean
supportedWalletType?: 'all' | 'smartWalletOnly' | 'eoaOnly'
}
Smart Wallet
Starting at @web3-onboard/coinbase
version 2.3.0 smart wallet support has been added. A smart wallet lives in your browser, no extensions or app installs needed. Use passkeys for signing, with enterprise-grade security without complex seed phrases. One wallet, one address, works universally across major L2s and onchain apps. More info on Coinbase smart wallets.
Usage
import Onboard from '@web3-onboard/core'
import coinbaseWalletModule from '@web3-onboard/coinbase'
const coinbaseWalletSdk = coinbaseWalletModule()
const onboard = Onboard({
wallets: [
coinbaseWalletSdk
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)