Über die Verwendung von getPastLogs

"getPastLogs" kann das Ereignisprotokoll abrufen. Ich überprüfe die web3-Dokumentation:

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']]

F1: Was bedeutet „Adresse“? Ist es die Vertragsadresse oder das Standardkonto?

Q2:Was bedeuten „Themen“? Wie richte ich das Array ein? Danke~~

Antworten (1)

Ich kann dir leider nur eine Frage beantworten, aber ich werde dir die Antwort zu Frage 2 weiter unten verlinken.

Q1-Antwort: Adresse bedeutet jede Adresse auf Ethereum (Ihr Konto oder jede Vertrags-/Personenadresse), wie auf der Dokumentationsseite erwähnt .

Q2-Antwort: Was sind Veranstaltungsthemen?