Wallets
XDEFI
Wallet module for connecting XDEFI to Web3 Onboard.
See XDEFI Wallet Developer Docs
Install
- Yarn
- Npm
Usage
Build Environments
For build env configurations and setups please see the Build Env section here
Wallets
Wallet module for connecting XDEFI to Web3 Onboard.
See XDEFI Wallet Developer Docs
yarn add @web3-onboard/core @web3-onboard/xdefi
npm install @web3-onboard/core @web3-onboard/xdefi
import Onboard from '@web3-onboard/core'
import xdefiWalletModule from '@web3-onboard/xdefi'
// initialize the module with options
const xdefiWalletSdk = xdefiWalletModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
xdefiWalletSdk()
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
For build env configurations and setups please see the Build Env section here