sdk.provider.unixtoslot
Home > @blaze-cardano/sdk > 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:
The slot in the relevant network