Hot answers tagged

3

Because LogNote is an anonymous event it is cheaper but on the other side you cannot filter it using a topic. See this already answered question for more details. Anyway, you can listen to all contract events and then filter in Javascript. DAI in fact has only 3 types of event: Transfer and Approval - with 3 parameters - and LogNote - with 4 parameters. ...


2

Events are emitted by contracts, but the address 0x7d8f5F4ACa6Ca7Eb857A9F36d46b0aA715a88849 you use is not a contract. But the address has three related Erc20 Token transactions. Let's assume you like to see the events from the related contract 0xdac17f958d2ee523a2206206994597c13d831ec7. You have to filter the topic with your specific account, like in the ...


1

Plese note that syncing optimization is up to clients, not to Ethereum, so each client implements its very own optimization method. When you say fast sync, I think you refer to geth. Fast sync is now the default sync mode for geth, and it is a way to prioritize objects you want to sync so you can start to work with the chain sooner. In particular, in geth's ...


1

Fast sync nodes do have all TX receipts, hence all logs.


1

Using remix.ethereum.org, here is an example that can help. The input, which is the same as calldata, is 0x29ae811475944220b52381f169021a7c3f2947dfd0d2b1fb95e6cd92358e0a7997c8a9a1000000000000000000000000000000000000000000000000000000000000000f. (This is calling file( 0x75944220b52381f169021a7c3f2947dfd0d2b1fb95e6cd92358e0a7997c8a9a1, 15)) calldataload is ...


1

You can solve this problem using Divide & Conquer strategy: async function getPastLogs(web3, address, topics, fromBlock, toBlock) { if (fromBlock <= toBlock) { try { return await web3.eth.getPastLogs({address, topics, fromBlock, toBlock}); } catch (error) { const midBlock = (fromBlock + toBlock) >&...


1

Not sure where exactly your problem is, but you can do the whole thing directly with web3 (instead of an HTTP request): const params = { address : "0x683f6e80c378e57fea188d53f4440600e87abc46", topics : ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"], fromBlock: 10394853, toBlock : 10399444 }; ...


1

From the ABI the event has two parameters that are indexed. The indexed parameters are not included in data field but in the topics array. "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", "...


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.


Only top voted, non community-wiki answers of a minimum length are eligible