hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Trace_Filter implementation

Open AlfredoG87 opened this issue 2 years ago • 0 comments

Problem

There are some use cases where is needed to show the complete transaction trace.

One of those use cases is to be able to support callHandlers when creating a subgraph. see other issue.

Solution

Implement Trace Api, specifically trace_filter method.

Based on my research, relay should be able to construct the results for trace_filter using the existing the following mirror node endpoint:

https://mainnet-public.mirrornode.hedera.com/api/v1/contracts/results/0xc3852e8f23e5551e0caf0a61efd504ea3bc92e49f40856cb236bf09941a9cbf7/actions

https://openethereum.github.io/JSONRPC-trace-module https://openethereum.github.io/JSONRPC-trace-module#trace_filter. https://docs.alchemy.com/reference/what-is-trace_filter https://docs.alchemy.com/reference/what-are-evm-traces

Alternatives

No response

AlfredoG87 avatar Sep 06 '23 22:09 AlfredoG87