class

Bitcoin::Structures::BlockHeader

Inherits Bitcoin::Structure < Reference < Object

Constructors

new(version : Int32 = Bitcoin::Protocol::BLOCK_VERSION, previous_block_header_hash : Bytes = Bytes.new(32), merkle_root_hash : Bytes = Bytes.new(32), time : UInt32 = 0_u32, bits : UInt32 = 0_u32, nonce : UInt32 = 0_u32)

Class methods

from_payload(io : IO)

Instance methods

bits
merkle_root_hash
nonce
previous_block_header_hash
time
to_payload
version