Subsquid

Documentation and Resources

How to Run the Subsquid Indexer

Schema Types

  • Defining Schema: The types of schemas used in the Subsquid Indexer are described in the schema.graphql file. You can find the detailed schema descriptions here: schema.graphql.

Update RPC endpoint

To use your own Fuel Node as a data source, you need to provide a GraphQL endpoint via the .setGraphql method in Main.ts file, like this:

const dataSource = new DataSourceBuilder()
    .setGraphql({
        url: '<https://testnet.fuel.network/v1/graphql>',
        strideConcurrency: 2,
        strideSize: 50
    })
    .setGateway('<https://v2.archive.subsquid.io/network/fuel-testnet>')
    .setFields({
        receipt: {
            contract: true,
            receiptType: true
        },
        transaction: {
            status: true
        }
    })
    .addReceipt({
        type: ['LOG_DATA'],
        transaction: true,
    })
    .build()

Last updated