Wallets
OKX Wallet
Wallet module for connecting Okx wallet through web3-onboard
Install
- Yarn
- Npm
Usage
Build Environments
For build env configurations and setups please see the Build Env section here
Wallets
Wallet module for connecting Okx wallet through web3-onboard
yarn add @web3-onboard/okxwallet
npm install @web3-onboard/okxwallet
import Onboard from '@web3-onboard/core'
import okxWallet from '@web3-onboard/okxwallet'
const okxWalletModule = okxWallet()
const onboard = Onboard({
// ... other Onboard options
wallets: [
okxWalletModule
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
For build env configurations and setups please see the Build Env section here