graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

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

Open BillInUK opened this issue 2 years ago • 3 comments

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

  • [X] Tick this box if you plan on implementing this feature yourself.
  • [X] I have searched the issue tracker to make sure this issue is not a duplicate.

BillInUK avatar Dec 26 '23 09:12 BillInUK

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?)

azf20 avatar Feb 02 '24 14:02 azf20

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 avatar Feb 07 '24 17:02 BillInUK

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.

BillInUK avatar Feb 07 '24 17:02 BillInUK