nimiqclient.models.log.TransferLog

class nimiqclient.models.log.TransferLog(type, from_, to, amount)[source]

Bases: Log

Transfer log returned by the server.

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

  • from (str) – Sender of the transaction associated with the log.

  • to (str) – Recipient of the transaction associated with the log.

  • amount (int) – Amount of the transaction 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.