Skip to content

enoldev/substreams-solana-pump-fun-swap

Repository files navigation

Substreams PumpFun Swap

This Substreams uses the PumpFun Swap IDL to decode instruction and events using the Solana raw data.

About Substreams

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.

QuickStart

Run the Binary (.spkg)

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.

  1. Install the Substreams CLI.
  2. Get an authentication token.
  3. Run the Substreams:
substreams gui substreams-pump-fun-swap-v0.1.0.spkg --start-block=329150000 --stop-block=+30

Build the Project

If 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.

  1. Install the Substreams CLI, along with Rust and Buf.
  2. Get an authentication token.
  3. Build the project.
substreams build
  1. Run the Substreams
substreams gui substreams-pump-fun-swap-v0.1.0.spkg --start-block=329150000 --stop-block=+30

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages