nimiqclient.models.log.HTLCRegularTransferLog

class nimiqclient.models.log.HTLCRegularTransferLog(type, contractAddress, preImage, hashDepth)[source]

Bases: Log

HTLC regular transfer 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.

  • preImage (str) – Pre-image of the HTLC associated with the log.

  • hashDepth (int) – Hash depth 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.