pub struct BlockHeaderBuilder { /* private fields */ }
Expand description
Binary layout for a block header.
Implementations§
Source§impl BlockHeaderBuilder
impl BlockHeaderBuilder
Sourcepub fn from_binary(_bytes: &[u8]) -> Self
pub fn from_binary(_bytes: &[u8]) -> Self
Creates an instance of BlockHeaderBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A BlockHeaderBuilder.
Sourcepub fn get_signature(&self) -> SignatureDto
pub fn get_signature(&self) -> SignatureDto
Sourcepub fn get_signer_public_key(&self) -> KeyDto
pub fn get_signer_public_key(&self) -> KeyDto
Sourcepub fn get_version(&self) -> u8
pub fn get_version(&self) -> u8
Sourcepub fn get_network(&self) -> NetworkTypeDto
pub fn get_network(&self) -> NetworkTypeDto
Sourcepub fn get_type(&self) -> EntityTypeDto
pub fn get_type(&self) -> EntityTypeDto
Sourcepub fn get_height(&self) -> HeightDto
pub fn get_height(&self) -> HeightDto
Sourcepub fn get_timestamp(&self) -> TimestampDto
pub fn get_timestamp(&self) -> TimestampDto
Gets number of milliseconds elapsed since creation of nemesis block.
§Returns
A Number of milliseconds elapsed since creation of nemesis block.
Sourcepub fn get_difficulty(&self) -> DifficultyDto
pub fn get_difficulty(&self) -> DifficultyDto
Sourcepub fn get_generation_hash_proof(&self) -> VrfProofBuilder
pub fn get_generation_hash_proof(&self) -> VrfProofBuilder
Sourcepub fn get_previous_block_hash(&self) -> Hash256Dto
pub fn get_previous_block_hash(&self) -> Hash256Dto
Sourcepub fn get_transactions_hash(&self) -> Hash256Dto
pub fn get_transactions_hash(&self) -> Hash256Dto
Sourcepub fn get_receipts_hash(&self) -> Hash256Dto
pub fn get_receipts_hash(&self) -> Hash256Dto
Gets hash of the receipts generated by this block.
§Returns
A Hash of the receipts generated by this block.
Sourcepub fn get_state_hash(&self) -> Hash256Dto
pub fn get_state_hash(&self) -> Hash256Dto
Gets hash of the global chain state at this block.
§Returns
A Hash of the global chain state at this block.
Sourcepub fn get_beneficiary_address(&self) -> AddressDto
pub fn get_beneficiary_address(&self) -> AddressDto
Gets beneficiary address designated by harvester.
§Returns
A Beneficiary address designated by harvester.
Sourcepub fn get_fee_multiplier(&self) -> BlockFeeMultiplierDto
pub fn get_fee_multiplier(&self) -> BlockFeeMultiplierDto
Gets fee multiplier applied to block transactions.
§Returns
A Fee multiplier applied to block transactions.
Trait Implementations§
Source§impl Clone for BlockHeaderBuilder
impl Clone for BlockHeaderBuilder
Source§fn clone(&self) -> BlockHeaderBuilder
fn clone(&self) -> BlockHeaderBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BlockHeaderBuilder
impl RefUnwindSafe for BlockHeaderBuilder
impl Send for BlockHeaderBuilder
impl Sync for BlockHeaderBuilder
impl Unpin for BlockHeaderBuilder
impl UnwindSafe for BlockHeaderBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more