Skip to main content

query.provider.unixtoslot

Home > @blaze-cardano/query > Provider > unixToSlot

Provider.unixToSlot() method

Translate a unix millisecond timestamp to slot, according to the providers network

Signature:

unixToSlot(unix_millis: bigint | number): Slot;

Parameters

Parameter

Type

Description

unix_millis

bigint | number

Milliseconds since midnight, Jan 1 1970

Returns:

Slot

The slot in the relevant network