useWallet


Signature #1

function useWallet<T extends WalletId>(
  walletId: T,
): WalletIdToWalletTypeMap[T] | undefined;

Parameters


Returns

the current active wallet instance

type ReturnType = WalletIdToWalletTypeMap[T] | undefined;

Signature #2

function useWallet(): WalletInstance | undefined;

Returns

type ReturnType = WalletInstance | undefined;