All packages

raw_blocks_solana

DenisCarriere
v1.0.0/20 downloads/Repository

Package ref

raw-blocks-solana@v1.0.0

Run package

CLI

Run map_events from the command line.

substreams run raw-blocks-solana@v1.0.0 map_events --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

Solana Raw Blockchain Data

Solana sf.solana.type.v1.Block

  • Blocks
  • Transactions
  • Instruction Calls
  • Account Activity
  • Rewards
  • Vote Transactions
  • Vote Instruction Calls
  • Vote Account Activity
  • [ ] Discriminators
graph TD;
  raw[sf.solana.type.v1.Block];
  raw --> blocks;
  raw --> transactions;
  raw --> instruction_calls;
  raw --> account_activity;
  raw --> rewards;
  raw --> vote_transactions;
  raw --> vote_instruction_calls;
  raw --> vote_account_activity;
  raw --> discriminators;

Graph

graph TD;
  map_events[map: map_events];
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> map_events;
  common:blocks_without_votes --> map_events;
  map_events_with_votes[map: map_events_with_votes];
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> map_events_with_votes;
  sf.solana.type.v1.Block[source: sf.solana.type.v1.Block] --> map_events_with_votes;
  common:blocks_without_votes[map: common:blocks_without_votes];
  sf.solana.type.v1.Block[source: sf.solana.type.v1.Block] --> common:blocks_without_votes;

Modules

Name: map_events
Initial block: 0
Kind: map
Input: source: sf.substreams.v1.Clock
Input: map: common:blocks_without_votes
Output Type: proto:pinax.solana.v1.Events
Hash: dcee2536d77ebb585cb3562cf6ed34b3103f6dbc

Name: map_events_with_votes
Initial block: 0
Kind: map
Input: source: sf.substreams.v1.Clock
Input: source: sf.solana.type.v1.Block
Output Type: proto:pinax.solana.v1.Events
Hash: c86e7d4fafa5bca66dc5b775c3174ae864eb5cac

Modules

Execution graph

10 modules
Show 8 dependencies
map

common:transactions_by_programid_and_account_without_votes

Output

sf.substreams.solana.v1.Transactions

map

common: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

common: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

common: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