Logs
addLog(options) {#add-log}
Get event logs emitted by some or all contracts in the network. options has the following structure:
where field:
address: the set of addresses of contracts emitting the logs. Omit to subscribe to events from all contracts in the network.topicN: the set of values of topicN.
where field to subscribe to all logs network-wide.
Related data can be requested via the include field:
transaction = true: will retrieve the parent transacton for each selected log.
.transactions iterable within block data and made available via the .transaction field of each log item.
Note that logs can also be requested by the other TronBatchProcessor methods as related data.
Selection of the exact fields to be retrieved for each log item and the optional parent transactions is done with the setFields() method documented on the Field selection page.
Example
Request allTransfer(address,address,uint256) event logs emitted by the USDT smart contract, include parent txs.

