graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.86k stars 938 forks source link

[Feature] index transactions on avax without contract address just with from to or data #5097

Open BillInUK opened 6 months ago

BillInUK commented 6 months ago

Description

index transactions on avax without contract address just with from to or data

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

I now need to index metadata on Avalanche (AVAX), and the metadata is not directly related to smart contracts. However, when I create a The Graph project, it requires me to specify a smart contract. Is it possible to support projects without smart contracts, where I only need to focus on the 'from', 'to', and 'data' fields within transactions?

Some information to help us out

azf20 commented 5 months ago

hey @BillInUK - so I understand your request here, you want to index transactions from or to a given address (rather than events or calls to a specific smart contract?) That isn't currently supported in Graph Node - would be interested in your use-case for this data (e.g. are you looking to show users their transaction history?)

BillInUK commented 5 months ago

For example, applications related to inscription are very useful. I don't care about from and to in transactions, just only want to parse the input of transaction.

Suppose I have an Inscription project: `deploy: "data:,{"p":"oprc-20","op":"deploy","tick":"test-1","max":"21000000","lim":"1000"}"

mint: "data:,{"p":"oprc-20","op":"mint","tick":"test-1","amt":"1000"}" `

I don't care about the from and to addresses in transactions; I'm more interested in the content inside the input, such as p, op, tickt, and amt.

BillInUK commented 5 months ago

i want to filter the inscription mint & transfer op with the graph, and sync the data into my postgresql.

Or subscribe mint and transfer events of specific tick which configured in my postgresql database.