useAllWallets
This hook returns a list of all supported wallet extensions.
Usage
import { useAllWallets } from 'useink'
function PrintWallets() {
const wallets = useAllWallets()
useEffect(() => console.log(wallets), [wallets])
return null;
}
Return Type
{
extensionName: string;
title: string;
noExtensionMessage?: string;
installUrl: string;
logo: WalletLogoProps;
installed: boolean | undefined;
extension: any;
signer: any;
enable: (dappName: string) => unknown;
getAccounts: (anyType?: boolean) => Promise<WalletAccount[]>;
subscribeAccounts: (callback: SubscriptionFn) => unknown;
sign?: (address: string, payload: string) => unknown;
transformError: (err: WalletError) => Error;
}[]
Last updated