Inputs
All packages
solana-orderbook
SC4RECOIN
Package ref
solana-orderbook@v0.1.1Run package
CLI
Run map_svm_events from the command line.
substreams run solana-orderbook@v0.1.1 map_svm_events -e solana-mainnet --start-block -1Authenticate by running
substreams auth or directly on thegraph.market (see docs).README
Substreams
Substreams is an indexer for onchain events when subgraphs aren't available.
Deploy subgraph
Each chain has its own configuration file. See the justfile for deployment commands.
Example: Sepolia
- Copy an existing configuration file and rename it to
substreams-sepolia.yaml - Update the package name field in the config to
name: sepolia-orderbook - Update the starting block
initialBlock: 10108380 - Update the parameter field to the appropriate chain id:
map_evm_events: "11155111" - Update the newtork field to
network: sepolia - Build and publish the spkg file with
just build-and-publish-evm sepolia - Deploy an indexing service using the docker image specified in the justfile
- Set PACKAGE env variable to
sepolia-orderbook-v0.1.1.spkg
Modules
Execution graph
Show 3 dependencies
Output
sf.solana.type.v1.BlockInputs
Output
sf.substreams.index.v1.Keys
`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.
Output
sf.solana.type.v1.BlockInputs