Package Logo
my_project_sql
my-project-sql@v0.1.0
Total Downloads
1
Published
1 weeks ago
Publisher
User Avatar alexqox

Readme

Description

  • This is a generated Substreams with bindings to write to an SQL database

Dependencies

Get Substreams-sink-sql

Get Substreams CLI (optional)

To try the Substreams directly, you need to install the substreams CLI (v1.7.2 or above).

You have many options as explained in this installation guide.

Check if substreams was installed successfully, you can run the following command:

substreams --version

Develop


Get a development API token using the following command:

substreams auth
. ./.substreams.dev  # or insert the SUBSTREAMS_API_TOKEN into the `config.toml` file.

Documentation

Modules

Maps icon
Maps

map
db_out

6c0d2b26156444d37fa8189321d5524d2b1bc41a
map db_out (
my_project:map_program_datasubstreams.v1.program.Data
)  -> sf.substreams.sink.database.v1.DatabaseChanges
substreams gui my-project-sql@v0.1.0 db_out

map
my_project:map_program_data

3019bf7eee829bb4cd9cd95f0ce837eb4713c9e5
substreams gui my-project-sql@v0.1.0 my_project:map_program_data

map
my_project:solana:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map my_project:solana:blocks_without_votes (
)  -> sf.solana.type.v1.Block
substreams gui my-project-sql@v0.1.0 my_project:solana:blocks_without_votes

map
my_project:solana:v020:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map my_project: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 my-project-sql@v0.1.0 my_project:solana:v020:blocks_without_votes
Block Indexes icon
Block Indexes

blockIndex
my_project:solana:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
blockIndex my_project:solana:program_ids_without_votes (
)  -> sf.substreams.index.v1.Keys
substreams gui my-project-sql@v0.1.0 my_project:solana:program_ids_without_votes
Protobuf

Protobuf Docs Explorer

substreams.v1.program
sf.solana.type.v1
sol.instructions.v1
sol.transactions.v1