Skip to main content

Module block_info_from_metadata

Module block_info_from_metadata 

Source

Functions§

block_info_from_metadata
Constructs a BlockInfo structure from the provided response metadata. This function translates metadata received from a platform response into a format that is specific to the application’s needs, particularly focusing on block-related information. It ensures that the epoch value from the metadata does not exceed MAX_EPOCH, as this is a constraint for the Epoch type used in the BlockInfo structure.