sth-ts
Version:
An SmartHoldem API wrapper, written in TypeScript to interact with SmartHoldem blockchain.
17 lines (16 loc) • 549 B
TypeScript
/** Time to interact with blockchain. */
export default class Slot {
static getTime(): number;
/**
* Calculates duration between now and provided timestamp
*/
static getDurationTime(timestamp: number): number;
/**
* Get transaction time from timestamp
*/
static getTransactionTime(timestamp: number): Date;
static getSlotNumber(epochTime?: number): number;
static getSlotTime(slot: number): number;
static getNextSlot(): number;
static getLastSlot(nextSlot: number): number;
}