1.1.1 • Published 2 months ago
@unipasswallet/web3-onboard v1.1.1
@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
1.1.1
2 months ago
1.1.0
1 year ago
1.0.1
1 year ago
0.0.1-alpha.6
1 year ago
0.0.1-alpha.5
1 year ago
0.0.1-alpha.2
1 year ago
0.0.1-alpha.1
1 year ago