Skip to main content

Type Alias: WalletProviderProps

WalletProviderProps = object

Properties

preferredWallets?

optional preferredWallets: 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()?

optional walletFilter: (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?

optional enableUnsafeBurner: boolean

Enables the development-only unsafe burner wallet, which can be useful for testing.


autoConnect?

optional autoConnect: boolean

Enables automatically reconnecting to the most recently used wallet account upon mounting.


storage?

optional storage: 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?

optional storageKey: string

The key to use to store the most recently connected wallet account.


theme?

optional theme: Theme | null

The theme to use for styling UI components. Defaults to using the light theme.


chain?

optional chain: ChainType


children

children: ReactNode