Об использовании getPastLogs

«getPastLogs» может получить журнал прошлых событий. Я проверяю документацию по web3:

fromBlock - Number|String: The number of the earliest block ("latest" may be given to mean the most recent and "pending" currently mining, block). By default "latest".
toBlock - Number|String: The number of the latest block ("latest" may be given to mean the most recent and "pending" currently mining, block). By default "latest".
address - String|Array: An address or a list of addresses to only get logs from particular account(s).
topics - Array: An array of values which must each appear in the log entries. The order is important, if you want to leave topics out use null, e.g. [null, '0x12...']. You can also pass an array for each topic with options for that topic e.g. [null, ['option1', 'option2']]

В1: что означает «адрес»? Это адрес контракта или учетная запись по умолчанию?

Q2: Что означает «темы»? Как настроить массив? Спасибо~~

Ответы (1)

К сожалению, я могу ответить вам только на один вопрос, но я приведу вам ответ на вопрос 2 ниже.

Ответ Q1: адрес означает любой адрес в Ethereum (ваша учетная запись или адрес любого контракта/лица), как указано на странице документации .

Ответ на вопрос 2. Каковы темы мероприятий?