UNPKG

@nktkas/hyperliquid

Version:

Unofficial Hyperliquid API SDK for all major JS runtimes, written in TypeScript and provided with tests

23 lines 793 B
import type { Hex } from "../base.js"; /** Abstract interface for a [viem wallet](https://viem.sh/docs/clients/wallet). */ export interface AbstractViemWalletClient { signTypedData(params: { domain: { name: string; version: string; chainId: number; verifyingContract: Hex; }; types: { [key: string]: { name: string; type: string; }[]; }; primaryType: string; message: Record<string, unknown>; }, options?: unknown): Promise<Hex>; } /** Checks if the given value is an abstract viem wallet. */ export declare function isAbstractViemWalletClient(client: unknown): client is AbstractViemWalletClient; //# sourceMappingURL=_viem.d.ts.map