This package was initialized via substreams init
, using the sol-minimal
template.
substreams build
substreams auth
substreams gui # Get streaming!
substreams registry login # Login to substreams.dev
substreams registry publish # Publish your Substreams to substreams.dev
map_my_data
This module will do a simple computation of the number of transactions and the number of instructions in each block.
substreams gui my-project@v0.1.2345678 map_my_data
substreams gui my-project@v0.1.2345678 solana:blocks_without_votes
substreams gui my-project@v0.1.2345678 solana:transactions_by_programid_without_votes
substreams gui my-project@v0.1.2345678 solana:transactions_by_programid_and_account_without_votes
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-project@v0.1.2345678 solana:v020:blocks_without_votes
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.
substreams gui my-project@v0.1.2345678 solana:v020:filtered_transactions_without_votes
substreams gui my-project@v0.1.2345678 solana:program_ids_without_votes
substreams gui my-project@v0.1.2345678 solana:program_ids_and_accounts_without_votes
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:
substreams gui my-project@v0.1.2345678 solana:v020:program_ids_without_votes