react-use-ark
Version:
Hook to easily access ARK blockchain Ѧ API in React application
25 lines (24 loc) • 519 B
TypeScript
export interface ITimestamp {
unix: number;
epoch: number;
human: string;
}
export interface IArrayResponse<T> {
data: T[];
meta: IMeta;
}
export interface IResponse<T> {
data: T;
meta: IMeta;
}
export interface IMeta {
count: number;
pageCount: number;
totalCount: number;
next: string;
previous: string;
self: string;
first: string;
last: string;
}
export declare type Resource = 'transactions' | 'blocks' | 'delegates' | 'wallets';