Module dash_sdk::platform::block_info_from_metadata

source ·

Functions§

  • 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 the maximum allowed for a 16-bit integer, as this is a constraint for the BlockInfo structure.