What You’ll Build
A script that checks whether a token’s liquidity pool is safe by analyzing LP holder distribution — burned, locked in known protocols (Unicrypt, PinkLock, Team Finance, Mudra), held by contracts, or sitting unlocked in regular wallets.Why It Matters
The #1 rug pull vector is unlocked liquidity. A developer who holds LP tokens can remove all liquidity at any time, crashing the token price to zero. TheliquidityAnalysis field gives you a per-pool breakdown of exactly who holds the LP tokens and whether they’re safe.
Quick Start
Understanding the Response
TheliquidityAnalysis array returns the top 3 pools by 24h volume. Each pool includes a full holder breakdown:
Holder Types
| Type | What It Means | Risk Level |
|---|---|---|
burned | LP tokens sent to a dead address. Liquidity is permanently locked. | Safe |
locked | LP tokens held by a locker protocol (Unicrypt, PinkLock, etc.). Locked for a defined period. | Safe (while lock active) |
contract | LP tokens in an unrecognized contract. Could be a custom lock, a multisig, or something else. | Investigate |
unlocked | LP tokens in a regular wallet. Can be removed at any time. | Risk |
Cookbook: Rug Pull Risk Scorer
This TypeScript function takes a token address and returns a risk assessment:Supported Protocols
LP Locker Detection
When LP tokens are held by a recognized locker contract, theprotocol field identifies it:
| Protocol | Chains | Description |
|---|---|---|
| Unicrypt | Ethereum, BSC, Arbitrum, Base | Largest LP locker, time-locked vaults |
| Team Finance | Ethereum, BSC | Team token and LP locking |
| PinkLock | Ethereum, BSC, Arbitrum, Base | PinkSale ecosystem locker |
| Mudra Locker | BSC | BSC-focused LP locker |
Supported DEX Pools
Liquidity analysis works across all major DEX types: EVM:- Uniswap V2/V3/V4, PancakeSwap, Camelot, Balancer, Curve, Solidly/Aerodrome, Fluid
- PumpSwap, Raydium (AMM V4, CPMM), Meteora (Dynamic AMM, DBC, DLMM), Orca Whirlpool
Combining with Other Security Signals
For a complete security assessment, combineliquidityAnalysis with other fields from the same endpoint: