nimiqclient.models.account.HTLC

class nimiqclient.models.account.HTLC(id, address, balance, type, sender, senderAddress, recipient, recipientAddress, hashRoot, hashAlgorithm, hashCount, timeout, totalAmount)[source]

Bases: nimiqclient.models.account.Account

Hashed Timelock Contract object returned by the server.

Parameters
  • id (str) – Hex-encoded 20 byte address.

  • address (str) – User friendly address (NQ-address).

  • balance (int) – Balance of the account (in smallest unit).

  • type (AccountType) – The account type associated with the account.

  • sender (str) – Hex-encoded 20 byte address of the sender of the HTLC.

  • senderAddress (str) – User friendly address (NQ-address) of the sender of the HTLC.

  • recipient (str) – Hex-encoded 20 byte address of the recipient of the HTLC.

  • recipientAddress (str) – User friendly address (NQ-address) of the recipient of the HTLC.

  • hashRoot (str) – Hex-encoded 32 byte hash root.

  • hashAlgorithm (int) – Hash algorithm.

  • hashCount (int) – Number of hashes this HTLC is split into.

  • timeout (int) – Block after which the contract can only be used by the original sender to recover funds.

  • totalAmount (int) – The total amount (in smallest unit) that was provided at the contract creation.

Methods