@web3modal/solana
.
chains
property is now networks
in Reown AppKit. You should import them from @reown/appkit/networks
package instead of importing these networks other packages.The metadata
and the projectId
are the same as before.adapters
property is a new property that is an array of adapters that can be initialized.
chains
property is now networks
in Reown AppKit. You should import them from @reown/appkit/networks
package instead of importing these networks from viem
or other packages.
defaultChain
property is now defaultNetwork
in Reown AppKit. This is a network object that specifies the default network for your Web3 app.
undefined
(unless you connect to a Solana wallet).chainId
getChainId()
returned a single type rather than multiple types:@web3modal/wagmi
(along with ethers and ethers5) returned number | undefined
.@web3modal/solana
returned string | undefined
.number | string | undefined
.modal.switchNetwork
takes the chain object as parameter rather than the chain id.solanaDevnet
is imported from @reown/appkit/networks
.address
, chainId
, isConnected
, provider
, and providerType
.
address
- It returns the connected wallet address. The value returned is the same as modal.getAddress()
chainId
- It returns the active network’s chainId
. The value returned is the same as modal.getChainId()
isConnected
- It returns if the selected network adapter is connected. The value returned is the same as modal.getIsConnected()
provider
- It returns the active connection provider. The value returned is the same as modal.getWalletProvider()
providerType
- It returns the active connection provider type. The value returned is the same as modal.getWalletProviderType()
modal.getState
- it returns the modal state
open
- it returns boolean that indicates if the modal is open or notselectedNetworkId
- it returns active network’s idmodal.subscribeState
modal.setThemeMode
modal.getThemeMode
modal.setThemeVariables
modal.getThemeVariables
modal.subscribeTheme
modal.getEvent
modal.subscribeEvents