Package Logo
sol_nft
sol-nft@v0.1.0
Total Downloads
0
Published
1 months ago
Publisher
User Avatar clenthon

Readme

sol_nft 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.

Documentation

Modules

Maps icon
Maps

map
map_block

d09b4292d03b1132be7f7e2cad4662b085f45c1c
map map_block (
blocksf.solana.type.v1.Block
)  -> sf.solana.nft.trades.v1.Output
substreams gui sol-nft@v0.1.0 map_block

map
map_my_data

8fac0ae520d6d8bd66b7c0ec4164cf7d28cf1a12
substreams gui sol-nft@v0.1.0 map_my_data

map
nft:map_block

1e3b2ebb0042ad395db069218ff8857e8aa4fe26
substreams gui sol-nft@v0.1.0 nft:map_block

map
nft:map_block_cnft

923a9a464a3893f7b191ea250215c965c898c0bf
map nft:map_block_cnft (
)  -> sf.solana.cnft.trades.v1.Output
substreams gui sol-nft@v0.1.0 nft:map_block_cnft

map
sol:map_filtered_transactions

c6c1682113e1023dedecc027408b3e3e4e5c354a
Default param : program:ComputeBudget111111111111111111111111111111 || (program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA && account:3MQw72oGrizUDEcD9gZYMgqo1pc364y5GnnJHcGpvurK)
substreams gui sol-nft@v0.1.0 sol:map_filtered_transactions

map
sol:solana:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map sol:solana:blocks_without_votes (
)  -> sf.solana.type.v1.Block
substreams gui sol-nft@v0.1.0 sol:solana:blocks_without_votes

map
sol:solana:transactions_by_programid_without_votes

79983641fb21f80af202858c457165e00d9c9c9f
map sol:solana:transactions_by_programid_without_votes (
paramsstring
)  -> sf.substreams.solana.v1.Transactions
Default param : program:4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy
substreams gui sol-nft@v0.1.0 sol:solana:transactions_by_programid_without_votes

map
sol:solana:transactions_by_programid_and_account_without_votes

852d5e44e6a93beb2ce194cdaba2787015fcc732
map sol:solana:transactions_by_programid_and_account_without_votes (
paramsstring
)  -> sf.substreams.solana.v1.Transactions
Default param : program:ComputeBudget111111111111111111111111111111 || (program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA && account:3MQw72oGrizUDEcD9gZYMgqo1pc364y5GnnJHcGpvurK)
substreams gui sol-nft@v0.1.0 sol:solana:transactions_by_programid_and_account_without_votes

map
sol:solana:v020:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map sol:solana:v020:blocks_without_votes (
)  -> sf.solana.type.v1.Block

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 sol-nft@v0.1.0 sol:solana:v020:blocks_without_votes

map
sol:solana:v020:filtered_transactions_without_votes

ccc3362e519a9eec745093ac483c80abe0134109
map sol:solana:v020:filtered_transactions_without_votes (
paramsstring
)  -> sol.transactions.v1.Transactions
Default param : program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

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 sol-nft@v0.1.0 sol:solana:v020:filtered_transactions_without_votes
Block Indexes icon
Block Indexes

blockIndex
sol:solana:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
substreams gui sol-nft@v0.1.0 sol:solana:program_ids_without_votes

blockIndex
sol:solana:program_ids_and_accounts_without_votes

ec0d2eb5ebfb384b6befa8aa19f6178b853672fe
blockIndex sol:solana:program_ids_and_accounts_without_votes (
)  -> sf.substreams.index.v1.Keys
substreams gui sol-nft@v0.1.0 sol:solana:program_ids_and_accounts_without_votes

blockIndex
sol:solana:v020:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
blockIndex sol:solana:v020:program_ids_without_votes (
)  -> sf.substreams.index.v1.Keys

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
substreams gui sol-nft@v0.1.0 sol:solana:v020:program_ids_without_votes
Protobuf

Protobuf Docs Explorer

sf.solana.nft.trades.v1
sf.solana.type.v1
sol.instructions.v1
sol.transactions.v1
mydata.v1