nimiqclient.models.block.BlockTemplateHeader

class nimiqclient.models.block.BlockTemplateHeader(version, prevHash, interlinkHash, accountsHash, nBits, height)[source]

Bases: object

Block template header returned by the server.

Parameters
  • version (int) – Version in block header.

  • prevHash (str) – 32-byte hex-encoded hash of the previous block.

  • interlinkHash (str) – 32-byte hex-encoded hash of the interlink.

  • accountsHash (str) – 32-byte hex-encoded hash of the accounts tree.

  • nBits (int) – Compact form of the hash target for this block.

  • height (int) – Height of the block in the block chain (also known as block number).

Methods