GraphQL Server

The fuel-indexer-api-server crate of the Fuel Indexer contains a standalone GraphQL API server that acts as a queryable endpoint on top of the data layer.

Note that the main binary of the fuel-indexer crate also contains a queryable GraphQL API endpoint. However, the fuel-indexer-api-server crate offers a standalone GraphQL API endpoint, whereas the fuel-indexer-api-server bundles its GraphQL API endpoint with other Fuel Indexer functionality (e.g., execution, handling, data-layer contruction, etc).

To run the standalone Fuel Indexer GraphQL API server using a configuration file:

cd fuel-indexer/

RUST_LOG=debug cargo run --bin fuel-indexer-api-server -- --config config.yaml

Where config.yaml is based on the default service configuration file.