All packages

solana_dex_with_sol_events

0xRad7
v0.2.3/49.7K downloads/Repository

Package ref

solana-dex-with-sol-events@v0.2.3

Run package

CLI

Run raydium_amm_events from the command line.

substreams run solana-dex-with-sol-events@v0.2.3 raydium_amm_events -e solana --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

solana-dex-with-sol-events

Stream Solana Dex events and SOL Transfer events with substreams.

Usage

substreams run substreams.yaml dex_with_sol_events -e mainnet.sol.streamingfast.io:443 -s {your_start_block_number} -t +1

If you see no output, please check that you have set a starting block, e.g. substreams run substreams.yaml dex_with_sol_events -e mainnet.sol.streamingfast.io:443 -s 325766951 -t +1.

Suported events include swap, initialize, deposit and withdraw. For more information, refer to the protobuf specification.

Modules

Execution graph

9 modules
Show 8 dependencies
map

sol:transactions_by_programid_and_account_without_votes

Output

sf.substreams.solana.v1.Transactions

map

sol:transactions_by_programid_without_votes

Output

sf.substreams.solana.v1.Transactions

map

sol:v020:blocks_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.

map

sol:v020:filtered_transactions_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.

blockIndex

sol:v020:program_ids_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: * program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

Output

sf.substreams.index.v1.Keys