eth_getLogs: New filter and its logs.

Description Usage Arguments Value See Also Examples

View source: R/eth.R

Description

eth_getLogs returns an array of all logs matching a given filter object.

Usage

1
2
eth_getLogs(from_block = "earliest", to_block = "latest", address,
  topics = -1, block_hash = -1)

Arguments

from_block

Integer|Tag - Block number, or the string 'earliest', 'latest' or 'pending'.

to_block

Integer|Tag - Block number, or the string 'earliest', 'latest' or 'pending'.

address

Address - Contract address or a list of addresses from which logs should originate.

topics

Array of Data - Topics are order-dependent. Each topic can also be an array of DATA with 'or' options.

block_hash

Hash Single block to return logs. If blockHash is present in the filter criteria, then neither fromBlock nor toBlock are allowed.

Value

Hash - A filter Id.

See Also

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

Examples

1
2
3
4
eth_getLogs(0, 100, '0xcaf9a0356ddfa779fdbb55c45b22d35673550f30',
list('0x977f31fe2eae427d123315e068c90016b9f8c44b9c8d0818a740f06d2dc10f95',
'0x0000000000000000000000000000000000000000000000000000000000000003'))
eth_getLogs(address = '0x8655bd257db96eb2aca7154f845d6b1d67689219')

gethr documentation built on May 2, 2019, 7:03 a.m.