Skip to main content

useActiveWalletType

hook to retrieve current active WalletType

Usage

import { useActiveWalletType } from "graz";

function App() {
const { walletType } = useActiveWalletType();

return (
<div>
<span>Connected to {walletType}</span>
</div>
);
}

Return Value

{
walletType: boolean;
isCosmostation: boolean;
isCosmostationMobile: boolean;
isKeplr: boolean;
isKeplrMobile: boolean;
isLeap: boolean;
isVectis: boolean;
isLeapMobile: boolean;
isWalletConnect: boolean;
isMetamaskSnapLeap: boolean;
}