Skip to main content

getWallet

Function to return wallet object based on given WalletType or from store and throws an error if it does not exist on window or unknown wallet type

Usage

import { getWallet, WalletType } from "graz";

try {
const wallet = getWallet();
const keplr = getWallet(WalletType.KEPLR);
} catch (error: Error) {
console.error(error.message);
}