@nktkas/hyperliquid
Version:
Unofficial Hyperliquid API SDK for all major JS runtimes, written in TypeScript and provided with tests
7 lines (6 loc) • 341 B
JavaScript
/** Checks if the given value is an abstract viem wallet. */
export function isAbstractViemWalletClient(client) {
return typeof client === "object" && client !== null &&
"signTypedData" in client && typeof client.signTypedData === "function" &&
(client.signTypedData.length === 1 || client.signTypedData.length === 2);
}