Skip to content

afrijaldz/token-transfer-indexer

Repository files navigation

Swap Burn Indexer

A TypeScript-based indexer for tracking swap and burn events, designed for use with Ethereum-compatible blockchains. This project uses Ponder for event indexing and exposes an API for querying indexed data.

Features

  • Indexes swap and burn events from smart contracts
  • Uses Ponder for efficient event processing
  • Exposes a REST API for querying indexed data
  • TypeScript for type safety and maintainability

Project Structure

abis/                # Contract ABIs
src/                 # Source code
  api/               # API endpoints
  index.ts           # Main entry point
generated/           # Generated files (e.g., GraphQL schema)
note.js              # Project notes or scripts
ponder.config.ts     # Ponder configuration
ponder.schema.ts     # Ponder schema definitions
ponder-env.d.ts      # Ponder environment types

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • pnpm (or npm/yarn)

Installation

pnpm install

Configuration

  1. Copy .env.example to .env and fill in the required environment variables.
  2. Update ponder.config.ts and ponder.schema.ts as needed for your contracts and events.

Running the Indexer

pnpm start

Development

pnpm dev

Building for Production

pnpm build

API

The API is exposed via the endpoints in src/api/. See the code for available routes and usage.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published