Replies: 1 comment
-
It depends a bit on what you mean. For a given contract address, you can query all events emitted from that address, so if it is a contract wallet, that might serve your purposes. For events about a given EOA wallet address (I.E. one controlled by a private key), you can query for all Transfer events to or from, if you know the ABI. This likely works for most of your purpose, since you can use the topic filter You can come up with a series of heuristics for events you care about. But there isn’t really a way to detect all “events for a wallet address” in a generic way, because it’s not really well defined what it even means to be “for a wallet address” as each contract gets to dictate what that means. For example, imagine if you entered a lottery contract and it emits only a Another example might be a zero-knowledge mixer, which emits an event with your address blinded (hashed to keep secret), in which case it cannot be queried by standard means. So, it depends on your purpose, but for the most part a couple heuristic filters will probably catch most of what you care about. :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
Can I query all events for a wallet address with ethers v6?
Code Example
No response
Beta Was this translation helpful? Give feedback.
All reactions