This Substreams uses the PumpFun Swap IDL to decode instruction and events using the Solana raw data.
Substreams is a streaming solution developed by The Graph, which enables you to consume data from a variety of chains in several ways: streaming directly from a programming language (Go, Rust, JS...) or sending the data to a SQL database.
A compiled Substreams project is contained in the substreams-pump-fun-swap-v0.1.0.spkg file, which contains all the decoding logic of the Solana program.
- Install the Substreams CLI.
- Get an authentication token.
- Run the Substreams:
substreams gui substreams-pump-fun-swap-v0.1.0.spkg --start-block=329150000 --stop-block=+30If you want to modify the actual Substreams code contained in the src directory (i.e. modify the decoding of the data), you will need Rust and Buf installed.
- Install the Substreams CLI, along with Rust and Buf.
- Get an authentication token.
- Build the project.
substreams build- Run the Substreams
substreams gui substreams-pump-fun-swap-v0.1.0.spkg --start-block=329150000 --stop-block=+30