graphprotocol / graphprotocol/graph-node

Feature request: tracking native coin transfers

Open
#3,643 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

It would be very usefull if it was possible to track all native coin (ETH/Matic) transfers to/from specific addresses.

It's easy to track ERC20/ERC721 tokens by just using eventHandler on Transfer event.
This feature could work similarly to data source templates, where template is defined in subgraph.yml and later some handler has to run MyTemplate.create(address) to start indexing the some specific instance of the contracts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the subgraph.yml data source template mechanism and the eventHandler pattern for ERC20/ERC721 Transfer events. Determine how a template such as MyTemplate.create(address) could represent native ETH/Matic transfers to and from selected addresses, then define indexing and query behavior for the completed feature.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.