Header

data class Header(var version: Int, var prevBlockhash: String, var merkleRoot: String, var time: UInt, var bits: UInt, var nonce: UInt)(source)

Bitcoin block header. Contains all the block’s information except the actual transactions, but including a root of a merkle tree committing to all transactions in the block.

Constructors

Link copied to clipboard
constructor(version: Int, prevBlockhash: String, merkleRoot: String, time: UInt, bits: UInt, nonce: UInt)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var bits: UInt

The target value below which the blockhash must lie.

Link copied to clipboard

The root hash of the merkle tree of transactions in the block.

Link copied to clipboard
var nonce: UInt

The nonce, selected to obtain a low enough blockhash.

Link copied to clipboard

Reference to the previous block in the chain.

Link copied to clipboard
var time: UInt

The timestamp of the block, as claimed by the miner.

Link copied to clipboard

Block version, now repurposed for soft fork signalling.