Prerequisites
- Node.js 22+ installed
- Docker installed
1
Download and install
Install the Pipes SDK package.
2
Create a new project
Create a minimal
docker-compose.yml:docker-compose.yml
3
Start the Clickhouse server
Start the services using Docker Compose:
4
Create the script
Create a file
index.ts with the following code:index.ts
5
Run the script
Execute the script to start indexing Transfer events.You should see the indexer progress in the console:
How It Works
The pipeline connects four components: a Portal source streams blockchain data, an event decoder filters and decodes Transfer events using the ERC20 ABI, a transform step maps decoded events to database rows, and a ClickHouse target persists the data. Each decoded event includesblock (number and hash), timestamp, contract address, and typed event fields (from, to, value).

