Rug pull detection in Solana with score feature to determine a token's legitness. Used Solana web3.js, Raydiyum sdk, Helius API, Dexscreener API for marketdata. It has the following checking features
- Top holders percentage
- Individual holders percentage
- Honeypot
- Liqiuidity check
- Minting functionality
- Mutablity of metadata
- Freezing of contract
- Ownership revoke
- Websites check
- Pump.fun website check (This website supports creating rug tokens. If token is created in this website, it is rug)
- Clone/fork the repo.
npm install
or use anyother package installer likeyarn install
- Setup
.env
withSOLANA_RPC_SOLANA_RPC_ENDPOINT="https://solana-mainnet.core.chainstack.com/9106xxxxx"
andHELIUS_API_KEY="123456-7890-xxxx"
. - To build Typescript files run the following command
npm run build
. - All set !!
node index.js
to run the script. Input the address of token and it will revert back with Metadata, rug score, marketdata(if available) etc...
Rug score is determined by all checking features combined. If a token is below 400 score, it is safe from rug pull.
This SDK determines most tokens and tokens that are listed in Raydium. It may fail sometimes as it is in development. So use cautiously.