You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The online documentation for searchlogs as well as the command line documentation is incorrect for the topics parameter - "null" is incorrect and it should be null
fromBlock (numeric, required) The number of the earliest block (latest may be given to mean the most recent block).
toBlock (numeric, required) The number of the latest block (-1 may be given to mean the most recent block).
address (string, optional) An address or a list of addresses to only get logs from particular account(s).
topics (string, optional) An array of values from which at least one must appear in the log entries. The order is important, if you want to leave topics out use null, e.g. [null, "0x00..."].
minconf (numeric, optional, default=0) Minimal number of confirmations before a log is returned
fromBlock (numeric, required) The number of the earliest block (latest may be given to mean the most recent block).
toBlock (numeric, required) The number of the latest block (-1 may be given to mean the most recent block).
address (string, optional) An address or a list of addresses to only get logs from particular account(s).
topics (string, optional) An array of values from which at least one must appear in the log entries. The order is important, if you want to leave topics out use null, e.g. ["null", "0x00..."].
minconf (numeric, optional, default=0) Minimal number of confirmations before a log is returned
To reproduce
qtum-cli help searchlogs
The text was updated successfully, but these errors were encountered:
The online documentation for searchlogs as well as the command line documentation is incorrect for the topics parameter -
"null"
is incorrect and it should benull
The online documentation's example also needs to be updated as well
https://docs.qtum.site/en/Qtum-RPC-API/#searchlogs
Expected behavior
searchlogs fromBlock toBlock ( "address" "topics" minconf )
Search logs, requires -logevents to be enabled.
Arguments:
Actual behavior
searchlogs fromBlock toBlock ( "address" "topics" minconf )
Search logs, requires -logevents to be enabled.
Arguments:
To reproduce
qtum-cli help searchlogs
The text was updated successfully, but these errors were encountered: