Last chance! 50% off unlimited learning
Sale ends in
eth_getLogs
returns an array of all logs matching a given filter
object.
eth_getLogs(from_block = "earliest", to_block = "latest", address,
topics = -1, block_hash = -1)
Integer|Tag - Block number, or the string 'earliest', 'latest' or 'pending'.
Integer|Tag - Block number, or the string 'earliest', 'latest' or 'pending'.
Address - Contract address or a list of addresses from which logs should originate.
Array of Data - Topics are order-dependent. Each topic can also be an array of DATA with 'or' options.
Hash Single block to return logs. If blockHash
is
present in the filter criteria, then neither fromBlock
nor
toBlock
are allowed.
Hash - A filter Id.
Other eth functions: eth_accounts
,
eth_blockNumber
, eth_call
,
eth_coinbase
,
eth_estimateGas
,
eth_gasPrice
, eth_getBalance
,
eth_getBlockByHash
,
eth_getBlockByNumber
,
eth_getBlockTransactionCountByHash
,
eth_getBlockTransactionCountByNumber
,
eth_getCode
,
eth_getFilterChanges
,
eth_getFilterLogs
,
eth_getProof
,
eth_getStorageAt
,
eth_getTransactionByBlockHashAndIndex
,
eth_getTransactionByBlockNumberAndIndex
,
eth_getTransactionByHash
,
eth_getTransactionCount
,
eth_getTransactionReceipt
,
eth_getUncleByBlockHashAndIndex
,
eth_getUncleByBlockNumberAndIndex
,
eth_getUncleCountByBlockHash
,
eth_getUncleCountByBlockNumber
,
eth_getWork
, eth_hashrate
,
eth_mining
,
eth_newBlockFilter
,
eth_newFilter
,
eth_newPendingTransactionFilter
,
eth_protocolVersion
,
eth_sendRawTransaction
,
eth_sendTransaction
,
eth_sign
, eth_submitHashrate
,
eth_submitWork
, eth_syncing
,
eth_uninstallFilter
, gethr
,
personal_sendTransaction
# NOT RUN {
eth_getLogs(0, 100, '0xcaf9a0356ddfa779fdbb55c45b22d35673550f30',
list('0x977f31fe2eae427d123315e068c90016b9f8c44b9c8d0818a740f06d2dc10f95',
'0x0000000000000000000000000000000000000000000000000000000000000003'))
eth_getLogs(address = '0x8655bd257db96eb2aca7154f845d6b1d67689219')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab