Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 667 Bytes

File metadata and controls

23 lines (15 loc) · 667 Bytes

Substreams Sink Examples - JS (Node)

This example consumes a Substreams package (specifically, the Ethereum Explorer) using the Substreams JS library in NodeJS.

The API token is provided through an environment variable:

const TOKEN = process.env.SUBSTREAMS_API_TOKEN

If you don't have it, set the SUBSTREAMS_API_TOKEN environment variable. Then, you can easily get started:

  1. Install the dependencies.

    npm install
  2. Run the script.

    node index.js