UNPKG

saepenatus

Version:

Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, mul

41 lines (29 loc) 867 B
# @web3-onboard/coinbase ## Wallet module for connecting Coinbase Wallet SDK to web3-onboard See [Coinbase Wallet Developer Docs](https://docs.cloud.coinbase.com/wallet-sdk/docs) ### Install `npm i @web3-onboard/coinbase` ## Options ```typescript type CoinbaseWalletOptions = { darkMode: boolean // default = false } ``` ## Usage ```typescript import Onboard from '@web3-onboard/core' import coinbaseWalletModule from '@web3-onboard/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) ```