Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@unipasswallet/web3-onboard

UniPassID6MIT1.1.1TypeScript support: included

UniPass is a non-custodial smart contract wallet that provides a seedless and gasless user experience

Ethereum, Web3, EVM, dapp, Multichain, Wallet, Transaction, Provider, Hardware Wallet, Notifications, React, Svelte, Vue, Next, Nuxt, MetaMask, Coinbase, WalletConnect, Ledger, Trezor, Connect Wallet, Ethereum Hooks, Blocknative, Mempool, pending, confirmed, Injected Wallet, UniPass, Crypto, Crypto Wallet

readme

@unipasswallet/web3-onboard

Installation

npm i @web3-onboard/core @unipasswallet/web3-onboard

or

  yarn add @web3-onboard/core @unipasswallet/web3-onboard

Parameters

  • options.chainId -- Default chainId.

  • options.returnEmail -- If true, email will return when connect function been called.

  • options.appSettings -- Config appName, appIcon and theme.

Usage

import Onboard from '@web3-onboard/core'
import unipassModule from '@unipasswallet/web3-onboard'

// initialize the module with options
const unipass = unipassModule({
  chainId: 80001,
  returnEmail: true,
  appSettings: {
    appName: 'web3-onboard test for unipass',
    appIcon: 'your icon url',
    theme: UniPassTheme.DARK
  }
})

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

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

Example

A demo app for web3-onboard is available here