Substreams is a powerful indexing technology, which allows you to:
Extract data from several blockchains (Solana, Ethereum, Polygon, BNB...).
Apply custom transformations to the data.
Send the data to a place of your choice (for example, a Postgres database or a file).
You can use Substreams packages to define which specific data you want to extract from the blockchain. For example, consider that you want to retrieve data from the Uniswap v3 smart contract. You can simply use the Uniswap v3 Substreams Package and send that data wherever you want!
Consume Substreams
There are many ready-to-use Substreams packages, so you can simply consume them. Use the (Substreams.dev Registry) to explore packages.
Once you find a package that fits your needs, you only have choose how you want to consume the data. Send the data to a SQL database, configure a webhook or stream directly from your application!
Develop Substreams
If you can't find a Substreams package that retrieves exactly the data you need, you can develop your own Substreams.
You can write your own Rust function to extract data from the blockchain:
The following function extracts Solana instructions from a specific program ID.