Getting started with the console sink

The console sink prints the value returned by the transform function to the standard output.

This sink is useful when developing an indexer since you can quickly check the value returned by the transformation without setting up any external service.

Installation

Terminal
apibara plugins install sink-console

Usage

This sink doesn't have any configuration option.

indexer.ts
export const config = {
  // ...
  sinkType: "console",
  sinkOptions: {},
};
Last modified
Apibara

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.

© 2024 GNC Labs Limited. All rights reserved.