An interface for interacting with a wallet management library (e.g. Web3Modal, RainbowKit, ConnectKit etc).
Example with React & RainbowKit.
const { openConnectModal, connectModalOpen } = useConnectModal();const walletManager = useMemo( () => ({ open: async () => openConnectModal?.(), isOpen: connectModalOpen, }), [openConnectModal, connectModalOpen]); Copy
const { openConnectModal, connectModalOpen } = useConnectModal();const walletManager = useMemo( () => ({ open: async () => openConnectModal?.(), isOpen: connectModalOpen, }), [openConnectModal, connectModalOpen]);
Example with React & Web3Modal.
const { open, isOpen } = useWeb3Modal();const walletManager = useMemo( () => ({ open, isOpen, }), [open, isOpen],); Copy
const { open, isOpen } = useWeb3Modal();const walletManager = useMemo( () => ({ open, isOpen, }), [open, isOpen],);
Is the wallet connecting view open? If it is, we might want to hide the widget.
A callback to open the wallet connecting view (e.g. a modal to connect the wallet).
Optional
Generated using TypeDoc
An interface for interacting with a wallet management library (e.g. Web3Modal, RainbowKit, ConnectKit etc).
Example
Example with React & RainbowKit.
Example
Example with React & Web3Modal.