Trait HasHeader
pub trait HasHeader {
type Header: Header;
// Required method
fn header(&self) -> Self::Header;
}
Expand description
Access to the block header.
If featured by the blockchain, the header can be used to transmit block’s metadata via a network protocol or in other uses where the full content of the block is too bulky and not necessary.