Wallets
XDEFI
Wallet module for connecting XDEFI to web3-onboard
See XDEFI Wallet Developer Docs
Install
- Yarn
- Npm
Wallets
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);