@nktkas/hyperliquid
Version:
Unofficial Hyperliquid API SDK for all major JS runtimes, written in TypeScript and provided with tests
22 lines • 684 B
TypeScript
import type { Hex } from "../base.js";
/** Signs typed data (EIP-712) with a private key. */
export declare function signTypedDataWithPrivateKey(args: {
privateKey: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: Hex;
};
types: {
[key: string]: {
name: string;
type: string;
}[];
};
primaryType: string;
message: Record<string, unknown>;
}): Promise<Hex>;
/** Validates if a string is a valid secp256k1 private key. */
export declare function isValidPrivateKey(privateKey: unknown): privateKey is string;
//# sourceMappingURL=_private_key.d.ts.map