WalletTransaction

class pyrogram.types.WalletTransaction[source]

Contains information about a TON wallet blockchain transaction.

Parameters:
  • id (str) – Unique identifier of the transaction.

  • amount (int) – Transaction amount in nano-TON.

  • fee (int) – Transaction fee in nano-TON.

  • date (datetime) – Date of the transaction.

  • is_incoming (bool) – True if this is an incoming transfer.

  • is_gasless (bool) – True if this was a gasless transfer.

  • is_failed (bool) – True if the transaction failed.

  • is_key_change (bool) – True if this transaction modified the wallet key.

  • comment (str, optional) – Transaction comment or transfer memo.

  • comment_encrypted (bool, optional) – True if the transaction comment was encrypted.

  • tx_hash (str, optional) – Blockchain transaction hash.

  • peer_user (User, optional) – Telegram user counterpart if transferred to/from a user.

  • peer_address (str, optional) – Blockchain wallet address counterpart.

  • peer_domain (str, optional) – TON DNS domain associated with the peer address.

  • onramp_provider (str, optional) – Name of the fiat onramp provider if purchased via onramp.