Dev.to Security 🔐 Cybersecurity 👁 2 📖 3 min read

I built a 30-second Solana token check that shows its sources (and admits when it doesn't know)

Most "is this token safe?" tools give you a score out of 100 and no way to check the maths. I wanted the opposite: a tool that shows where every number came from, and writes n/a instead of guessing. So I built Token Ch

Most "is this token safe?" tools give you a score out of 100 and no way to check the maths.

I wanted the opposite: a tool that shows where every number came from, and writes n/a instead of guessing.

So I built Token Check — free, open source, no signup.

Try it: https://qhuanwrites.github.io/longtail-agent/
Code: https://github.com/qhuanwrites/longtail-agent
Run it as an Apify actor: https://apify.com/qhuanwrites/solana-token-due-diligence

What it actually checks

Paste a Solana mint address and you get six things:

  1. Mint authority — can someone still print more supply?
  2. Freeze authority — can someone freeze your wallet's tokens?
  3. Holder concentration — how much of the supply sits in ten accounts, after removing the ones that aren't people?
  4. Liquidity — how much is actually in the pool (GeckoTerminal)?
  5. Volume vs market cap — thin trading is its own risk.
  6. Dilution overhang — FDV far above market cap means unlocks are coming.

Then it gives a plain-English verdict: LOOKS FINE, BE CAREFUL, or HIGH RISK.

The holder number everyone gets wrong

The first version of my tool flagged JUP as high risk. Jupiter is one of the most liquid tokens on Solana, so that was obviously wrong.

The reason: "top 10 holders" usually includes the liquidity pools. A Raydium or Orca pool holding 40% of supply isn't one whale about to dump — it's the market itself. Same for staked balances and locked allocations.

So the tool now makes one extra RPC call on the ten addresses and asks who owns each account:

  • owned by the System Program → a real wallet
  • owned by Raydium / Orca / Meteora / Phoenix / Pump.fun → a pool
  • owned by the Stake program → staked
  • owned by Jupiter's lock program → locked

Concentration is then reported twice: the raw top-10 share, and the share that is actually free to sell. JUP went from "high risk" to "looks fine" once the pools were excluded. RAY stayed high risk, because 82% really does sit in a handful of wallets.

That distinction is the whole product. A number without context is a rumour.

The part I care about: sources

Every figure in the memo is followed by the URL it came from, the HTTP status, and a timestamp. If a call fails, the field says n/a — it never fills the gap with a plausible-looking number.

That sounds obvious. It is also the single biggest difference between a tool you can audit and a tool you have to trust.

It has tests, and CI actually runs them

The risk rules are the product. If a rule silently stops firing, the memo starts lying — so the rules are pinned by 16 unit tests:

Ran 16 tests in 0.001s
OK

Green on every push: https://github.com/qhuanwrites/longtail-agent/actions

Three ways to use it

  • Browser: paste an address, get a card. No wallet connection, no signup.
  • CLI: python agent.py BONK prints a full Markdown memo with a sources table.
  • Apify: run it as an actor and get JSON back, with every source listed.

There's also scan.py for a watchlist — it scores a list of tickers and ranks them.

What it does not do

It won't tell you if the team is about to dump. It won't read the token's Telegram. It won't predict price. It checks the on-chain facts that are cheap to verify and expensive to ignore.

If you want a feature, open an issue — the repo is small and the roadmap is public.

Built with the Coingecko API (price, market cap, volume) and Solana RPC (mint/freeze authority, largest accounts). Liquidity comes from GeckoTerminal's public API.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.