Параметры
blockHashstringобязательный- 32-byte block hash.
Возвращает
array One entry per transaction: its logs, or null if it emitted none.
addressstring- Contract that emitted the log.
topicsarray- Up to four indexed topics; topic 0 is the event signature hash.
datastring- Non-indexed event arguments, ABI-encoded.
blockNumberstring- Block number, hex.
transactionHashstring- Hash of the transaction that emitted the log.
logIndexstring- Position of the log in the block, hex.
removedboolean- true if the log was removed by a reorg.
Когда использовать
Get every log of a block grouped by transaction, so you know which transaction emitted what without fetching receipts.
Как читать ответ
Index i holds the logs of transaction i, or null when that transaction emitted none.
Советы
- Combine with eth_getBlockByHash to line up logs with transactions.