-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement searchTransactionsBefore and searchTransactionsAfter #13499
Comments
Hey, I'd like to work on this |
cool, assigned. lmk if you need any pointers |
@caglaryucekaya I don't actually know for sure if the address argument is the sender or whether this should find any occurrences of the address |
I'd like to take this issue. |
Could I be assigned to this? |
hey @caglaryucekaya are you working on this one or should i attempt it? |
@askwhyharsh I am working on it |
@mattsse I checked the otterscan book and about the address argument it says: "They return inbound (to), outbound (from) and "internal" transactions. By internal it means that if a transaction calls a contract and somewhere in the call stack it sends ETH to the address you are searching for or the address is a contract and it calls a method on it, the transaction is matched and returned in the search results." So is the way to do this to iterate over all blocks one by one beginning from the block number and check the |
@caglaryucekaya this also matches
which can happen during execution. this is very similar to what trace_filter does: reth/crates/rpc/rpc/src/trace.rs Lines 286 to 303 in 91dd417
unfortunately, this is quite expensive and we don't have additional indexes for this, so the only way we can support this rn is by tracing all the blocks and then scan the internal txs -.- we can however optimize this by doing a scan pass first and try to find if the account even exists ( |
Mind if I try this one? |
Can I try solving this issue? |
Describe the feature
ref
reth/crates/rpc/rpc/src/otterscan.rs
Lines 293 to 303 in f791f39
this is likely similar to
reth/crates/rpc/rpc/src/trace.rs
Lines 243 to 247 in f791f39
todo
Additional context
#3726
The text was updated successfully, but these errors were encountered: