Package Exports
- @web3-onboard/finoaconnect
- @web3-onboard/finoaconnect/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@web3-onboard/finoaconnect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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)