2.0.0 • Published 11 months ago
@web3-onboard/finoaconnect v2.0.0
@web3-onboard/finoaconnect
Wallet module for connecting FinoaConnect SDK to web3-onboard
Install
npm i @web3-onboard/core @web3-onboard/finoaconnect
Usage
Optional initialization object
/** Optional object provided to the initiation of the wallet connector.
* When not included, the wallet connector service connects to FinoaConnect production systems.
* @field {url} URL of the FinoaConnect backend systems to be used
* @field {labelSuffix} arbitrary string label to denote the context of the URL field */
export interface FinoaWalletOption {
url?: string
labelSuffix?: string
}
import Onboard from '@web3-onboard/core';
import finoaConnectModule from '@web3-onboard/finoaconnect';
const onboard = Onboard({
// ... other Onboard options
wallets: [
finoaConnectModule()
//... other wallets
]
})
// alternatively to connect to a localised development environment
const onboard = Onboard({
// ... other Onboard options
wallets: [
finoaConnectModule([
{
labelSuffix: 'localhost',
url: 'http://localhost:8080',
}
])
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
2.0.0
11 months ago
2.0.0-alpha.1
11 months ago