nimiqclient.models.log.CreateStakerLog

class nimiqclient.models.log.CreateStakerLog(type, stakerAddress, validatorAddress, value)[source]

Bases: Log

Staker creation log returned by the server.

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

  • stakerAddress (str) – Address of the staker associated with the log.

  • validatorAddress (str) – Validator address of the staker associated with the log.

  • value (int) – Stake value 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.