Skip to main content

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. The liquidityAnalysis field gives you a per-pool breakdown of exactly who holds the LP tokens and whether they’re safe.

Quick Start

Understanding the Response

The liquidityAnalysis array returns the top 3 pools by 24h volume. Each pool includes a full holder breakdown:

Holder Types

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, the protocol field identifies it:

Supported DEX Pools

Liquidity analysis works across all major DEX types: EVM:
  • Uniswap V2/V3/V4, PancakeSwap, Camelot, Balancer, Curve, Solidly/Aerodrome, Fluid
Solana:
  • PumpSwap, Raydium (AMM V4, CPMM), Meteora (Dynamic AMM, DBC, DLMM), Orca Whirlpool

Combining with Other Security Signals

For a complete security assessment, combine liquidityAnalysis with other fields from the same endpoint: