Inputs
dex_trades
Package ref
dex-trades@v0.1.0Run package
CLI
Run map_block from the command line.
substreams run dex-trades@v0.1.0 map_block -e solana --start-block -1substreams auth or directly on thegraph.market (see docs).README
my_project Substreams modules
This package was initialized via substreams init, using the sol-minimal template.
Usage
substreams build
substreams auth
substreams gui # Get streaming!
substreams registry login # Login to substreams.dev
substreams registry publish # Publish your Substreams to substreams.dev
Modules
map_my_data
This module will do a simple computation of the number of transactions and the number of instructions in each block.
Modules
Execution graph
Output
mydata.v1.MyDataInputs
Show 19 dependencies
Inputs
Output
sf.substreams.sink.pubsub.v1.Publish
Output
sf.solana.type.v1.BlockInputs
Output
sf.substreams.index.v1.Keys
Output
sf.substreams.index.v1.Keys
Output
sf.substreams.solana.v1.Transactions
Output
sf.substreams.solana.v1.Transactions
`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
`filtered_transactions_without_votes` allows you to consume transactions containing instructions from specific program_id based on a filter string. Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()`. Example: to only consume TRANSACTIONS containing Token or ComputeBudget instructions: `program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA || program:ComputeBudget111111111111111111111111111111`. Transactions containing `Vote111111111111111111111111111111111111111` are always excluded.
`program_ids_without_votes` creates a _cache_ to efficiently retrieve instructions based on the program ID. For example, the following sets keys for the Token program: * program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
Output
sf.substreams.index.v1.Keys
Output
sf.solana.type.v1.BlockInputs
Output
sf.substreams.index.v1.Keys
Inputs
Output
sf.substreams.index.v1.Keys
Output
sf.substreams.solana.v1.Transactions
Inputs
Output
sf.substreams.solana.v1.Transactions
Inputs
`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
`filtered_transactions_without_votes` allows you to consume transactions containing instructions from specific program_id based on a filter string. Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()`. Example: to only consume TRANSACTIONS containing Token or ComputeBudget instructions: `program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA || program:ComputeBudget111111111111111111111111111111`. Transactions containing `Vote111111111111111111111111111111111111111` are always excluded.
Inputs
Output
sf.substreams.index.v1.Keys