Package org.bitcoindevkit
Class Header
-
- All Implemented Interfaces:
public final class HeaderBitcoin 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.
-
-
Method Summary
Modifier and Type Method Description final IntegergetVersion()Block version, now repurposed for soft fork signalling. final UnitsetVersion(Integer version)Block version, now repurposed for soft fork signalling. final StringgetPrevBlockhash()Reference to the previous block in the chain. final UnitsetPrevBlockhash(String prevBlockhash)Reference to the previous block in the chain. final StringgetMerkleRoot()The root hash of the merkle tree of transactions in the block. final UnitsetMerkleRoot(String merkleRoot)The root hash of the merkle tree of transactions in the block. final UIntgetTime()The timestamp of the block, as claimed by the miner. final UnitsetTime(UInt time)The timestamp of the block, as claimed by the miner. final UIntgetBits()The target value below which the blockhash must lie. final UnitsetBits(UInt bits)The target value below which the blockhash must lie. final UIntgetNonce()The nonce, selected to obtain a low enough blockhash. final UnitsetNonce(UInt nonce)The nonce, selected to obtain a low enough blockhash.
-
-
-
Method Detail
-
getVersion
final Integer getVersion()
Block version, now repurposed for soft fork signalling.
-
setVersion
final Unit setVersion(Integer version)
Block version, now repurposed for soft fork signalling.
-
getPrevBlockhash
final String getPrevBlockhash()
Reference to the previous block in the chain.
-
setPrevBlockhash
final Unit setPrevBlockhash(String prevBlockhash)
Reference to the previous block in the chain.
-
getMerkleRoot
final String getMerkleRoot()
The root hash of the merkle tree of transactions in the block.
-
setMerkleRoot
final Unit setMerkleRoot(String merkleRoot)
The root hash of the merkle tree of transactions in the block.
-
-