Skip to content

Add support for geth traces #114

Closed
Closed
@medvedev1088

Description

@medvedev1088

The scope of this task:

  1. Design the model for geth traces (trace.py can be used as a basis).
  2. Implement the export and extract jobs.
    2.a The export job should use traceBlockByNumber (cmd, core, eth/tracers: support fancier js tracing ethereum/go-ethereum#15516) and output raw JSON responses. It should use callTracer, an example JS API call: debug.traceBlockByNumber('0x250252', {'tracer': 'callTracer'}); the same is available via JSON RPC. The job should use BatchWeb3Provider similar to export_blocks_job.py.
    2.b The extract job should take the file with raw JSON responses, parses them, map to our domain entity and output to CSV file.
  3. Write unit tests (real mainnet responses should be used in test cases, so the same tests can be run against geth node).
  4. Add documentation to README (an example can be found here). Include instructions for how to start geth i.e. what options to use (e.g. geth --gcmode archive)

=======================
Notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions