BlockTemplateHeader

public struct BlockTemplateHeader : Decodable

Block template header returned by the server.

  • Version in block header.

    Declaration

    Swift

    public var version: Int
  • 32-byte hex-encoded hash of the previous block.

    Declaration

    Swift

    public var prevHash: String
  • 32-byte hex-encoded hash of the interlink.

    Declaration

    Swift

    public var interlinkHash: String
  • 32-byte hex-encoded hash of the accounts tree.

    Declaration

    Swift

    public var accountsHash: String
  • Compact form of the hash target for this block.

    Declaration

    Swift

    public var nBits: Int
  • Height of the block in the block chain (also known as block number).

    Declaration

    Swift

    public var height: Int