Module utils

Module utils 

Source

Structs§

SlotConfig
Slot configuration for a Cardano network. Contains the parameters needed to convert between slots and POSIX time.

Functions§

bytes_to_hex
get_slot_config
Get the slot configuration for a specific network.
hex_to_bytes
hex_to_string
resolve_epoch_no
Resolve the epoch number for a network at a given time.
resolve_slot_no
Resolve the slot number for a network at a given time.
slot_to_begin_unix_time
Convert a slot number to the beginning POSIX time (in milliseconds).
string_to_hex
unix_time_to_enclosing_slot
Convert a POSIX time to the enclosing slot number.