streamingfast / substreams-solana-quickstart

Solana Example for Substreams Documentation
Apache License 2.0
3 stars 2 forks source link

Building subgraph for a specific SOL contract (Orca Whirpool) #2

Open gabrielfior opened 1 year ago

gabrielfior commented 1 year ago

Hello, thanks for this tutorial. I wanted to ask for input for another use-case, i.e. I want to build a subgraph for Orca (https://www.orca.so/), where I want to track specific transactions (for ex, transactions where the instruction IncreaseLiquidity appears (ex https://solscan.io/tx/4mjJrv26xNra1SJT21EcZLtnshEJAwm4mGoXb9KzrrFmaUxGEYyi1uEEh2WGMycNHtpTHY3V4VLjdJeFViXKg61X).

I see this tutorial only deals with Block objects. I was wondering how I should tackle Transaction objects (since I need arguments like LIquidity, token amounts, etc)? Input much appreciated.