Sim IDX is a framework that helps you build and deploy applications that index blockchain data in minutes. Define listeners that react to specific onchain events, extract relevant data, and automatically make this data queryable via an API.
This sample project indexes Uniswap V3 Factory pool creation events and serves as your starting point for building with Sim IDX.
When you're ready to continue, the Quickstart guide will walk you through authenticating and deploying your app.
The main files you'll work with are:
abis/- Add JSON ABI files for contracts you want to indexlisteners/src/Listener.sol- Define your indexing logic, triggers, events, and handlersapis/src/index.ts- Define APIs for your indexed data
.
├── sim.toml # App configuration
├── apis/ # Your custom API code
├── abis/ # Contract ABI files (JSON)
│ └── UniswapV3Factory.json # Example: Uniswap V3 Factory ABI
├── listeners/ # Foundry project for listener contracts
│ ├── src/
│ │ └── Listener.sol # Main listener contract (Edit this)
│ └── test/
│ └── Listener.t.sol # Unit tests for your listener
Ready to start building? Check out the comprehensive guides:
- Deploying Your App - Deploy your app
- Adding ABIs - How to add contract ABIs
- Writing Listeners - Define your indexing logic
- CLI Reference - All available commands