nimiqclient.models.log.HTLCCreateLog

class nimiqclient.models.log.HTLCCreateLog(type, contractAddress, sender, recipient, hashAlgorithm, hashRoot, hashCount, timeout, totalAmount)[source]

Bases: Log

HTLC creation log returned by the server.

Parameters:
  • type (LogType) – The log type associated with the log.

  • contractAddress (str) – Contract address of the HTLC associated with the log.

  • sender (str) – Sender of the HTLC associated with the log.

  • recipient (str) – Recipient of the HTLC associated with the log.

  • hashAlgorithm (str) – Hash algorithm of the HTLC associated with the log.

  • hashRoot (str) – Hash root of the HTLC associated with the log.

  • hashCount (int) – Hash count of the HTLC associated with the log.

  • timeout (int) – Timeout of the HTLC associated with the log.

  • totalAmount (int) – Total amount of the HTLC associated with the log.

Methods

get_log

Get the specific log type from the dictionary data.

static get_log(data)

Get the specific log type from the dictionary data.

Parameters:

data (dict) – The dictionary containing the data.

Returns:

Log object.

Return type:

Log or a subtype of Log.