Type Alias: WalletProviderProps
WalletProviderProps =
object
Properties
preferredWallets?
optionalpreferredWallets:string[]
A list of wallets that are sorted to the top of the wallet list, if they are available to connect to. By default, wallets are sorted by the order they are loaded in.
walletFilter()?
optionalwalletFilter: (wallet) =>boolean
A filter function to select wallets that support features required for the dApp to function. This filters the list of wallets presented to users when selecting a wallet to connect from, ensuring that only wallets that meet the dApps requirements can connect.
Parameters
wallet
WalletWithRequiredFeatures
Returns
boolean
enableUnsafeBurner?
optionalenableUnsafeBurner:boolean
Enables the development-only unsafe burner wallet, which can be useful for testing.
autoConnect?
optionalautoConnect:boolean
Enables automatically reconnecting to the most recently used wallet account upon mounting.
storage?
optionalstorage:StateStorage|null
Configures how the most recently connected to wallet account is stored. Set to null to disable persisting state entirely. Defaults to using localStorage if it is available.
storageKey?
optionalstorageKey:string
The key to use to store the most recently connected wallet account.
theme?
optionaltheme:Theme|null
The theme to use for styling UI components. Defaults to using the light theme.
chain?
optionalchain:ChainType
children
children:
ReactNode