WorkInstructions

public struct WorkInstructions : Decodable

Work instructions receipt returned by the server.

  • Hex-encoded block header. This is what should be passed through the hash function. The last 4 bytes describe the nonce, the 4 bytes before are the current timestamp. Most implementations allow the miner to arbitrarily choose the nonce and to update the timestamp without requesting new work instructions.

    Declaration

    Swift

    public var data: String
  • Hex-encoded block without the header. When passing a mining result to submitBlock, append the suffix to the data string with selected nonce.

    Declaration

    Swift

    public var suffix: String
  • Compact form of the hash target to submit a block to this client.

    Declaration

    Swift

    public var target: Int
  • Field to describe the algorithm used to mine the block. Always nimiq-argon2 for now.

    Declaration

    Swift

    public var algorithm: String