Skip to main content

GenesisInfos

type definition

interface GenesisInfos {
/**
* ### POSIX timestamp of blockchain start
* ## with **milliseconds precision**
**/
readonly systemStartPOSIX: CanBeUInteger,
/**
* ### slot duration in **milliseconds**
**/
readonly slotLengthInMilliseconds: CanBeUInteger
}

Genesis informations usually required to convert slots to POSIX timestamps and vice versa.

constants

defaultPreviewGenesisInfos

const defaultPreviewGenesisInfos: GenesisInfos = Object.freeze({
systemStartPOSIX: 1666656000_000,
slotLengthInMilliseconds: 1000
} as GenesisInfos);

defaultPreprodGenesisInfos

export const defaultPreprodGenesisInfos: GenesisInfos = Object.freeze({
systemStartPOSIX: 1666656000_000,
slotLengthInMilliseconds: 1000
} as GenesisInfos);

defaultMainnetGenesisInfos

export const defaultMainnetGenesisInfos: GenesisInfos = Object.freeze({
systemStartPOSIX: 1506203091_000,
slotLengthInMilliseconds: 1000
} as GenesisInfos);

functions

isGenesisInfos

type declaraition:

function isGenesisInfos( stuff: any ): stuff is GenesisInfos