sbch_queryLogs
Query logs by address, topics and block range. It is different from eth_getLogs
in:
the contract address is required, not optional;
the topics are position-independent, which means as long as a log has the specified topics in any position, it will be included in the returned result.
Parameters:
DATA
, 20 Bytes - contract addressArray of DATA
, topicsQUANTITY|TAG
- integer of start number, or string"latest"
for the last mined blockQUANTITY|TAG
- integer of end number, or string"latest"
for the last mined blockQUANTITY
- integer, the maximal number of txs to return,0
stands for default limit.
Note: the start number can be greater than the end number, if so, the results will be sorted by block height in descending order.
Returns:
Array
- array of log objects, see eth_getLogs
Last updated