Interface WalletManager

An interface for interacting with a wallet management library (e.g. Web3Modal, RainbowKit, ConnectKit etc).

Example

Example with React & RainbowKit.

const { openConnectModal, connectModalOpen } = useConnectModal();
const walletManager = useMemo(
() => ({
open: async () => openConnectModal?.(),
isOpen: connectModalOpen,
}),
[openConnectModal, connectModalOpen]
);

Example

Example with React & Web3Modal.

const { open, isOpen } = useWeb3Modal();
const walletManager = useMemo(
() => ({
open,
isOpen,
}),
[open, isOpen],
);

Hierarchy

  • WalletManager

Properties

Methods

Properties

isOpen: boolean

Is the wallet connecting view open? If it is, we might want to hide the widget.

Methods

  • A callback to open the wallet connecting view (e.g. a modal to connect the wallet).

    Parameters

    • __namedParameters: {
          chain?: Chain;
      }
      • Optional chain?: Chain

    Returns void

Generated using TypeDoc