@nktkas/hyperliquid
Version:
Hyperliquid API SDK for all major JS runtimes, written in TypeScript.
32 lines (31 loc) • 870 B
TypeScript
/**
* Common types shared across Explorer API methods.
* @module
*/
/// <amd-module name="file:///home/runner/work/hyperliquid/hyperliquid/src/api/explorer/_methods/_base/_schemas.ts" />
/** Explorer transaction. */
export type ExplorerTransaction = {
/** Action performed in transaction. */
action: {
/** Action type. */
type: string;
/** Additional action-specific fields. */
[key: string]: unknown;
};
/** Block number where transaction was included. */
block: number;
/** Error message if transaction failed. */
error: string | null;
/**
* Transaction hash.
* @pattern ^0x[a-fA-F0-9]{64}$
*/
hash: `0x${string}`;
/** Transaction creation timestamp. */
time: number;
/**
* Creator's address.
* @pattern ^0x[a-fA-F0-9]{40}$
*/
user: `0x${string}`;
};