This NestJS application integrates with the Reclaim Protocol (zkFetch) to generate zero-knowledge proofs for coingecko api
- Node.js and npm installed
- A Reclaim Protocol account (get your credentials from https://dev.reclaimprotocol.org/)
Run the following commands to install dependencies and download circuits:
npm install
npm run download:circuits
Create a .env
file in the root directory with your Reclaim credentials:
# Reclaim Protocol Configuration
APP_ID=your_app_id_here
APP_SECRET=your_app_secret_here
# Server Configuration
PORT=8080
Important: Replace your_app_id_here
and your_app_secret_here
with your actual Reclaim Protocol credentials from the Reclaim Dashboard.
npm run start:dev
npm run build
npm run start:prod
Returns a greeting message: gm gm! api is running
Generates a zero-knowledge proof for Ethereum price data from CoinGecko API.
Response:
{
"transformedProof": "...",
"proof": "..."
}
@reclaimprotocol/zk-fetch
: For generating zero-knowledge proofs@reclaimprotocol/js-sdk
: For proof verification and transformationdotenv
: For environment variable management@nestjs/*
: NestJS framework components