Metadata-Version: 2.5
Name: solana-launch-check
Version: 0.1.0
Summary: Check a Solana or pump.fun token before your bot buys: 0-100 launch score, penalty drivers, and the creator's earlier launches. Plus a new-launches feed poller.
Project-URL: Homepage, https://veriql.app
Project-URL: Documentation, https://veriql.app/openapi.json
Project-URL: Free API key, https://veriql.app/api/checkout?pack=free
Project-URL: x402scan listing, https://www.x402scan.com/server/b43a466b-e90b-41bf-a7a8-1502cde22f10
Author: Veriql
License-Expression: MIT
License-File: LICENSE
Keywords: creator-wallet,deployer,launch,memecoin,pump.fun,pumpfun,rug-check,sniper,solana,token-security,trading-bot,veriql
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# solana-launch-check

Check a Solana token before your bot buys it.

- **Launch score.** One call returns Veriql's 0-100 launch score, with every penalty spelled out: holder concentration, thin or unlocked liquidity, mint and freeze powers, wash-traded volume.
- **Creator history.** A second call reads the token's pump.fun creator off its bonding curve and shows what happened to that creator's other launches.
- **Launches feed.** `watch()` polls Veriql's feed of new Solana tokens that are already checked.

It uses only the Python standard library, and it works from the command line or inside a bot.

> **Disclosure:** we make Veriql. This package calls Veriql's API, which is paid. A check uses 2 credits, and a free key comes with 250.

## Install and get a key

```bash
pip install solana-launch-check
```

To get a free key, open <https://veriql.app/api/checkout?pack=free> in a browser. It holds 250 credits and needs no sign-up. Then set the key:

```bash
export VERIQL_API_KEY=vq_live_...        # PowerShell: $env:VERIQL_API_KEY="vq_live_..."
```

## Command line

```console
$ solana-launch-check <MINT>
<MINT>
  launch score : 40/100 (caution)
  summary      : Caution: real risks here. Understand them before you buy.
  - Top 10 wallets hold 93% of supply, so a few holders can exit into whoever buys next (-42)
  - Very thin liquidity ($2.3k) (-8)
  - 24h volume is 79× liquidity, likely wash-traded (-7)
  - Launched under 24h ago, unproven (-3)
  creator      : <CREATOR WALLET>
  other launches on record: 7 (ledger starts 2026-09-30, so a floor)
  their measured collapses: withdrawn 0, sold off 0, unclassified 0
  YOUR RULES TRIPPED:
    * launch score 40 is below your minimum of 60
```

The output above is a real response. We replaced the addresses with placeholders.

The exit code tells your script what happened:

| Exit code | Meaning |
|---|---|
| `0` | None of your rules tripped. |
| `2` | At least one rule tripped. |
| `1` | Error, for example a bad address, a bad key or no credits left. |

More commands:

```bash
solana-launch-check <MINT> --json --min-score 70 --max-creator-launches 10
solana-launch-check --watch --interval 60     # new tokens as Veriql checks them
solana-launch-check --usage                   # credits left (free call)
```

## In your bot

```python
from solana_launch_check import Client

client = Client()                       # reads VERIQL_API_KEY

report = client.check(mint)             # /launch + /deployer, 2 credits
reasons = report.reasons_to_skip(
    min_score=60,                       # below this: skip
    max_creator_collapses=0,            # creator's earlier tokens that collapsed
    max_creator_other_launches=10,      # serial launchers (None = ignore)
)
if reasons:
    print("skip:", "; ".join(reasons))
else:
    ...                                  # your own logic decides from here
```

`report.score`, `report.band`, `report.drivers` (a list of `(label, penalty)` pairs), `report.creator`, `report.creator_other_launches` and `report.creator_collapses` are all there for your own rules. The raw API answers are in `report.launch` and `report.deployer`.

### Watch new launches

```python
for token in client.watch(interval=60):  # one credit per poll
    v = token["verdict"]
    print(token["address"], v["score"], token["deployer"]["otherLaunches"])
```

Every token in the feed is already scored and carries its creator summary, so you don't need a second call per token. The feed refreshes every few minutes. In the 7 days to 30 November 2026 it listed 1,795 tokens, about 256 a day.

## What the numbers mean

- **Score.** Structure read off the chain: holder concentration, liquidity and its lock, and mint and freeze powers at scan time. It measures structure. It does not forecast price, and it does not predict a rug.
- **No score.** When a partial check finds nothing, no score is published. The `reasons_to_skip()` default treats a missing score as a reason to skip; pass `skip_unscored=False` to change that.
- **Top-10 share** is an upper bound, because the ten largest accounts can include pool vaults and the bonding curve.
- **Creator.**
  - The creator is pump.fun's creator for the token: the address named at creation, which receives the creator fees. It is not necessarily the wallet that paid.
  - The ledger starts on 2026-09-30, so "other launches" is a floor.
  - Zero other launches means unknown, not clean, because a fresh wallet per launch is common.
- **Collapses.** A collapse is a measured liquidity collapse after Veriql's verdict, counted once per token by its strongest cause:
  - `withdrawn`: both sides of the pool left.
  - `soldOff`: holders sold.
  - `unclassified`: measured as an amount only.

## Cost

| Call | On a key | Pay per call over x402 (no key) |
|---|---|---|
| `launch` (score) | 1 credit | USD 0.005 |
| `deployer` (creator) | 1 credit. Free when the token is not a pump.fun token or no creator can be read. | USD 0.01 |
| `launches` (feed page) | 1 credit | USD 0.005 |
| `usage` | free | free |

Failed calls cost nothing.

**Free and paid keys:**
- A free key sees the launches feed 15 minutes late.
- For real time, a paid key is 20,000 calls for USD 19, paid in USDC or USDT on Solana, Base or Polygon. Buy it in Telegram: [@VeriqlBot](https://t.me/VeriqlBot?start=apikey), send `/apikey`.
- At one poll a minute, `watch()` uses 1,440 credits a day. At one poll every five minutes, it uses 288.

**x402:** the API also takes x402 pay-per-call in USDC on Base, Solana, Polygon, Arbitrum or Avalanche. This package does not sign x402 payments. If your agent already has an x402 client, see [openapi.json](https://veriql.app/openapi.json).

## Not advice

This is a read-only, best-effort risk signal. It detects known patterns and may miss new ones. It is not financial advice, and it is not a guarantee about any token.

## Links

- API description: [veriql.app/openapi.json](https://veriql.app/openapi.json)
- Veriql: [veriql.app](https://veriql.app)
- Related: [x402-payee-guard](https://pypi.org/project/x402-payee-guard/) and [stablecoin-freeze-check](https://pypi.org/project/stablecoin-freeze-check/)

MIT licensed.
