Configure your widget for seamless wallet management
@lifi/widget
package.
Signer
/Provider
objects to Wagmi’s injected connector before wrapping the Widget with WagmiProvider.
Connect wallet
button triggers the opening of an internal wallet menu. In cases where external wallet management is used we provide onConnect
configuration option. This option allows developers to specify a callback function that will be executed when the Connect wallet
button is clicked.
Please see modified RainbowKit example below. Here we use openConnectModal
function provided by useConnectModal
hook to open RainbowKit wallet menu when the Connect wallet
button is clicked.
projectId
or Coinbase Wallet’s appName
parameters.
usePartialWalletManagement
configuration option allows the widget to offer partial wallet management functionality. When enabled, this option provides a hybrid approach, effectively combining both external and internal wallet management.
In partial mode, external wallet management is used for “opt-out” providers, while internal management applies to any remaining providers that do not opt out. This setup creates a flexible balance between the integrator’s custom wallet menu and the widget’s native wallet menu, ensuring a smooth user experience across all ecosystems, even if external support is incomplete or in transition.
Partial wallet management example