Skip to content

Types

Glossary of Types in Wallet components & utilities.

ConnectWalletReact

type ConnectWalletReact = {
  children?: React.ReactNode; // Children can be utilized to display customized content when the wallet is connected.
  className?: string; // Optional className override for button element
  text?: string; // Optional text override for button
};

IsValidAAEntrypointOptions

export type IsValidAAEntrypointOptions = {
  entrypoint: string;
};

IsWalletACoinbaseSmartWalletOptions

export type IsWalletACoinbaseSmartWalletOptions = {
  client: PublicClient;
  userOp: UserOperation<'v0.6'>;
};

IsWalletACoinbaseSmartWalletResponse

export type IsWalletACoinbaseSmartWalletResponse =
  | { isCoinbaseSmartWallet: true }
  | { isCoinbaseSmartWallet: false; error: string; code: string };

WalletContextType

type WalletContextType = {
  address?: Address | null; // The Ethereum address to fetch the avatar and name for.
};

WalletReact

type WalletReact = {
  children: React.ReactNode;
};

WalletDropdownReact

type WalletDropdownReact = {
  children: React.ReactNode;
  className?: string; // Optional className override for top div element
};

WalletDropdownDisconnectReact

export type WalletDropdownDisconnectReact = {
 className?: string; // Optional className override for the element
 text?: string; // Optional text override for the button
};

WalletDropdownLinkReact

export type WalletDropdownLinkReact = {
  children: string;
  className?: string; // Optional className override for the element
  href: string;
  icon?: 'wallet' & ReactNode;
  rel?: string;
  target?: string;
};