1

i have used below command to get every logs on the special blocks but its only return erc20 token logs and ethereum transactions was not listed.

my geth command:

curl --data '{"method":"eth_getLogs","params":[{"fromBlock": "0x9C98BE", "toBlock": "0x9C98BE"}],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:25545

my command just return 147 transactions:

https://pastebin.com/ybYz1k4q

etherscan was return 170 transactions:

https://etherscan.io/txs?block=10262718

Anyone can explain where is the etherum transactions (Not ERC20 Transactions) on eth_getLogs?

1 Answer 1

1

The command eth_getLogs returns transactions that generated a log entry. Ether transfers between regular accounts do not generate a log so they will not be included.

2
  • thank you and how to get the list of transactions between regular accounts? Jun 14, 2020 at 15:43
  • @farhadjafari I don't know an api call that will return that list. An option is iterating all blocks in the range an examining each transaction for transfers.
    – Ismael
    Jun 14, 2020 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.