Getting Started
This section provides an outline regarding how to get started using the Fuel indexer service, including dependency installation, basic usage, and examples.
- Installing Rust
- System dependencies
- Application dependencies
- Indexer Configuration
- Project Structure
After you've installed all required dependencies. Feel free to checkout a few examples.
Architecture
The Fuel indexer is meant to run alongside a Fuel node and a database. Generally, the typical flow of information through the indexer is as follows:
- A Sway smart contract emits receipts during its execution on the Fuel node.
- Blocks, transactions, and receipts from the node are monitored by the Fuel indexer service and checked for specific user-defined event types.
- When a specific event type is found, the indexer executes the corresponding handler from an index module.
- The handler processes the event and stores the index information in the database.
- A dApp queries for blockchain data by using the indexer's GraphQL API endpoint, which fetches the desired information from the corresponding index in the database and returns it to the user.