Menu

How we compute a rug score for Solana tokens
📰

How we compute a rug score for Solana tokens

DEV Community: api·Frits Zwager·9 days ago
#9ioqnHr5
#devtoapi#devto#dev#pump#token
Reading 0:00
15s threshold

A trading bot that buys a fresh pump.fun token has a few seconds to decide. Our rug-check gives it one number from 0 to 100 and a list of reasons. Here is exactly how that number is built.

Short version: we read the token's mint account and its largest holders straight from Solana, add fixed points per red flag (danger 40, warning 15, info 0), and cap the total at 100. No hidden weights.

1. What we read on-chain

The mint account : supply, mint authority, freeze authority.

The largest token accounts ( getTokenLargestAccounts ).

The owner of each of the top 12 accounts, and which program owns it. That tells us whether it is a person, a pool or a lock.

2. Mint and freeze authority

Finding Severity Why it matters

MINT_AUTHORITY danger (+40) More tokens can be created; holders get diluted

FREEZE_AUTHORITY danger (+40) Your account can be frozen: you can buy but never sell

MINT_REVOKED info (0) Fixed supply, standard on pump.fun

3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.