Я хочу просканировать последний блок https://trx.tokenview.com/en/blocklist сети tron, если есть новая транзакция по определенному адресу.
Мне удалось получить последний блок и баланс адреса, но я не могу понять, как сканировать последний блок и искать любую новую транзакцию по адресу. Любая идея будет очень полезна.
from tronpy import Tron
client = Tron()
#-- Get the latest block
latestBlock = client.get_latest_block_number()
print (latestBlock)
#-- Get the balance
accountBalance = client.get_account_balance('TTzPiwbBedv7E8p4FkyPyeqq4RVoqRL3TW')
print (accountBalance)
#-- if the address has new transaction in the latest block at the time of the scan:
#-- display all the data (receiver, sender and amount, etc)
Мобильная версия