TraceDD

Overview

TraceDD is a due-diligence memo for long-tail Solana tokens. Paste a mint or ticker. The app calls the CoinGecko API and shows a one-page memo where every figure links to the response it came from.

It is informational only. It is not financial advice.

The product name defaults to TraceDD and can be changed with `BRAND_NAME`.

Quickstart

You need Node.js 20 or newer.

```bash

npm install

copy .env.example .env.local

```

Put your CoinGecko Analyst key in `COINGECKO_API_KEY`. Do not commit `.env.local`.

```bash

npm run dev

```

Open http://localhost:3000 for the landing page and http://localhost:3000/app for a check.

```bash

npm test

npm run build

```

`DEMO_MODE=replay` serves the saved BONK and Wojak fixtures and does not call CoinGecko.

How CoinGecko API is used

Every call is made on the server with the header `x-cg-pro-api-key`. The browser never sees the key. Results are cached in memory for 5 minutes. A 429 or 5xx response is retried twice with backoff.

| Feature | Endpoint | Why |

| --- | --- | --- |

| Security, score, authorities, holder distribution | `/onchain/networks/solana/tokens/{address}/info` | Mint, freeze, honeypot, GT score, top-10 share |

| Price, liquidity, volume, market cap | `/onchain/networks/solana/tokens/{address}` | Market price for the memo and the quote check |

| Pools, DEX, age, daily change | `/onchain/networks/solana/tokens/{address}/pools` | Deepest pool |

| Top holders | `/onchain/networks/solana/tokens/{address}/top_holders` | Holder list. Beta, timestamp is shown |

| Daily OHLCV | `/onchain/networks/solana/tokens/{address}/ohlcv/day` | Weekly change and sparkline |

| Recent trades | `/onchain/networks/solana/tokens/{address}/trades` | Buy and sell mix on the returned page |

| Ticker and peers | `/onchain/search/pools?network=solana` | Resolve a ticker and find comparables |

| Trending pools | `/onchain/networks/solana/trending_pools` | Move context |

| Insights | `/insights?coin_id=` | Move explainer when a coin id exists |

A memo line that contains a digit and has no citation is dropped.

How Solana is used

Onchain CoinGecko calls use network id `solana`.

A mint must be base58, 32 to 44 characters. Anything else that looks like a short ticker is searched. Anything else is rejected before a fetch.

The memo links each shown address to Solana Explorer and Solscan. Tokens use `solscan.io/token`. Wallets and pools use `solscan.io/account`. Links open in a new tab. An address that fails the base58 check is not linked.

The memo also links to Jupiter with the mint filled in. TraceDD does not send a transaction.

`GET /api/actions/check?mint=` returns a Solana Action summary and the memo URL.

Telegram bot

The default setup runs inside the Vercel deployment. No separate server is needed.

Set `TELEGRAM_BOT_TOKEN` in the Vercel environment variables. The webhook route is `POST /api/telegram/webhook`. It uses the same `runCheck` function as `POST /api/check`.

- `/start` explains the bot and gives an example.

- `/check <mint or ticker>` returns the decision, three risk lines, price, liquidity, top-10 share, and a link to `/app`.

Messages are plain text, under Telegram's length limit. The bot does not print the token.

The landing page links to `https://t.me/<username>`. The default username is `TraceDDRadarBot`. Set `TELEGRAM_BOT_USERNAME` without the @ to change it.

Connect Telegram to Vercel

After the Vercel deploy, register the webhook with Telegram. Replace `<BOT_TOKEN>`, `<APP_URL>`, and `<SECRET>`:

```bash

curl "https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=<APP_URL>/api/telegram/webhook&secret_token=<SECRET>"

```

The secret is optional but recommended. When set, it must match `TELEGRAM_WEBHOOK_SECRET` in Vercel.

Local development

```bash

npm run bot

```

The bot polls Telegram when `TELEGRAM_BOT_TOKEN` is set. Stop the webhook first with `deleteWebhook`, and do not run polling and the webhook at the same time.

Architecture

```text

Landing / Telegram / Blink

|

v

Next.js /api ---> CoinGecko Pro API

|

v

Rule memo + citation check

```

The memo is filled from API fields. There is no model in the request path.

Cache: in-memory, 5 minutes for a successful response, 30 seconds for an error, keyed by path and query.

Decision: FAIL when mint authority is on and liquidity is under $10k and the top 10 hold over 50%, or when the honeypot flag is yes. Any one of those three is CAUTION. Freeze authority on is CAUTION. Missing data stays missing.

Quote check: absolute gap versus the onchain token price. Above 100 bps is FLAG. Above 300 bps is BLOCK.

Submission notes

Built in December 2026 for the CoinGecko Long Tail Solana hackathon, AI Agents track.

CoinGecko data is the memo. Solana is the network, the explorer links, the Jupiter link, and the Action endpoint.

Powered by the CoinGecko API. Follow the attribution guide: https://brand.coingecko.com/resources/attribution-guide

License: MIT. See LICENSE in the repo.

GitBook publish URL: set `DOCS_URL` when the space is published. Until then the same pages are served at `/docs`.