Package Logo
my_flip_test_substream
my_flip_test_substream@v0.1.0
Total Downloads
5
Published
23 hours ago

Readme

Substreams Starter Dev Kit

Getting Started

Your first 60h/month are free!

This will open a fully featured Devcontainer-based development environment, using GitHub Codespaces.

Within the IDE, in a Terminal (F1 -> Terminal: Create New Terminal), run:

substreams init
substreams build
substreams auth
substreams gui
substreams registry login
substreams registry publish

Run help to better navigate the development environment and generate sink projects with:

substreams codegen subgraph
substreams codegen sql

Learn more:

Discover community Substreams modules:

Clone in local VSCode

VSCode has excellent support for such containers. See their documentation.

[!NOTE] Devcontainers, the environment proposed here, have greatly matured in the past 3 years. They have been standardized, implemented in multiple IDEs and tools, and are used at scale in great companies (eg. Shopify).

Local install

The Devcontainer is the preferred way to develop Substreams. Our documentation generally assumes this environment.

If you prefer, you can install all components locally by following our installation docs.

Included in the dev environment

  • substreams preinstalled
  • For Substreams development: Rust toolchain, buf and protobuf tooling,
  • For subgraph development: node/npm, along with all subgraph services, running in the devcontainer (graph-node, postgres, ipfs) directly accessible locally or remotely.
  • Pre-configured VSCode extensions for everything, plus a custom VSCode Substreams Extension.

Documentation

Modules

Maps icon
Maps

map
map_program_data

d15741d45f0cd78bb7a41ce3bd318828ad361994
map map_program_data (
solana:blocks_without_votessf.solana.type.v1.Block
)  -> substreams.v1.program.Data
substreams gui my-flip-test-substream@v0.1.0 map_program_data

map
solana:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:blocks_without_votes (
)  -> sf.solana.type.v1.Block
substreams gui my-flip-test-substream@v0.1.0 solana:blocks_without_votes

map
solana:v020:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:v020:blocks_without_votes (
)  -> sf.solana.type.v1.Block

blocks_without_votes allows you to consume a full Solana Block without Vote instructions (Vote111111111111111111111111111111111111111). If you consume it on HISTORICAL data (+1000 blocks from HEAD), you will be reading from the StreamingFast cache, thus saving costs on the amount of TB read.

substreams gui my-flip-test-substream@v0.1.0 solana:v020:blocks_without_votes
Block Indexes icon
Block Indexes

blockIndex
solana:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
substreams gui my-flip-test-substream@v0.1.0 solana:program_ids_without_votes
Protobuf

Protobuf Docs Explorer

substreams.v1.program
sf.solana.type.v1
sol.instructions.v1
sol.transactions.v1