1. Wallets
  2. OneKey

Wallets

OneKey

OneKey Wallet is a open source wallet project, which includes both hardware and app wallets. This package is designed to enable the integration of the OneKey Wallet into Web3-Onboard’s “Connect Wallet” modal. If you have downloaded the OneKey extension, you will be prompted to connect the wallet; for those who haven’t downloaded it, they will be redirected to the download site.

Install

Usage

        import Onboard from '@web3-onboard/core'
import injectedModule, { ProviderLabel } from '@web3-onboard/injected-wallets'

// initialize the module
const injected = injectedModule({
  displayUnavailable: [ProviderLabel.OneKey],
})

const onboard = Onboard({
  // ... other Onboard options
  wallets: [
    injected
    //... other wallets
  ]
})

const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)