@gear-js/react-hooks
Version:
React hooks used across Gear applications
10 lines (9 loc) • 365 B
TypeScript
declare function useGetApproxBlockTimestamp(): (blockNumber: number) => Promise<number>;
declare function useApproxBlockTimestamp(blockNumber: number | undefined): {
blockTimestamp: undefined;
isBlockTimestampReady: false;
} | {
blockTimestamp: number;
isBlockTimestampReady: true;
};
export { useApproxBlockTimestamp, useGetApproxBlockTimestamp };