Modules
Solid.js
A collection of composable functions for implementing web3-onboard in to a Solid project;
Quickstart with Injected Wallets and Ethers Provider
Install
- Yarn
- Npm
Quickstart
Functions
init
The init
function initializes web3-onboard
and makes it available to the useOnboard()
composable. For references check out the
initialization docs for @web3-onboard/core
Example usage
useOnboard
useOnboard
must be used after the init
function has been called - it will return an object that can be destructured to obtain the following reactive variables and functions:
Example usage
connectWallet
Function to open the onboard modal and connect to a wallet provider. For reference check out the
connecting a wallet for @web3-onboard/core
Example usage
connectedChain
Property that contains the current chain to which connectedChain
is connected
Example usage
connectedWallet
Property that contains the latest connected wallet
Example usage
disconnectConnectedWallet
Function to disconnect the connectedWallet
Example usage
getChain
Function that returns the current chain a wallet is connected to
Example usage
setChain
Function to set the chain of a wallet
Example usage
settingChain
Readonly boolean ref that tracks the status of setting the chain
Example usage
wallets
Readonly ref that contains every wallet that has been connected
Example usage
lastConnectedTimestamp
Readonly ref that contains the last time that the user connected a wallet in milliseconds