madeonsol 4.3.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -666,6 +666,8 @@ export interface TokenTopTradersParams {
666
666
  window_days?: number;
667
667
  /** Minimum SOL bought to qualify (default 0.1). */
668
668
  min_bought_sol?: number;
669
+ /** Page offset (default 0). */
670
+ offset?: number;
669
671
  }
670
672
  /** One wallet in a top-traders response, enriched with KOL identity + alpha-wallet stats. */
671
673
  export interface TokenTopTrader {
@@ -676,12 +678,18 @@ export interface TokenTopTrader {
676
678
  sells: number;
677
679
  bought_sol: number;
678
680
  sold_sol: number;
681
+ /** Realized SOL PnL on the matched portion; cost basis per the response's `cost_method`. */
679
682
  realized_pnl_sol: number;
680
- unrealized_pnl_sol: number;
681
- total_pnl_sol: number;
682
- held_value_sol: number;
683
+ /** null when still holding a token we cannot price (never valued at 0). */
684
+ unrealized_pnl_sol: number | null;
685
+ total_pnl_sol: number | null;
686
+ held_value_sol: number | null;
683
687
  roi: number | null;
684
688
  still_holding: boolean;
689
+ /** FIFO only (2026-10-14): tokens sold without an observed earlier buy (proceeds excluded from realized PnL). null under `average_cost`. */
690
+ unmatched_sell_tokens?: number | null;
691
+ /** FIFO only: every sold token matched an observed buy. null under `average_cost`. */
692
+ cost_basis_complete?: boolean | null;
685
693
  first_trade_at: string;
686
694
  last_trade_at: string;
687
695
  is_kol: boolean;
@@ -696,6 +704,9 @@ export interface TokenTopTradersResponse {
696
704
  mint: string;
697
705
  sort: "pnl" | "roi";
698
706
  window_days: number;
707
+ /** 2026-10-14: `"fifo"` = same cost basis as `/wallet/{address}/pnl`; `"average_cost"` = legacy fallback (overstates profit on unmatched sells). */
708
+ cost_method?: "fifo" | "average_cost";
709
+ cost_method_note?: string;
699
710
  traders: TokenTopTrader[];
700
711
  summary: {
701
712
  returned: number;
@@ -1128,6 +1139,44 @@ export interface KolEntryOrderParams {
1128
1139
  /** Max entries to return (1–100). Default: 50. */
1129
1140
  limit?: number;
1130
1141
  }
1142
+ export interface KolTokenTradesParams {
1143
+ /** 1–200, default 100. BASIC is clamped to 20. */
1144
+ limit?: number;
1145
+ action?: "buy" | "sell";
1146
+ /** Only this KOL wallet. */
1147
+ kol?: string;
1148
+ /** ISO time: only trades strictly after it. */
1149
+ since?: string;
1150
+ /** `next_cursor` from the previous page. */
1151
+ cursor?: string;
1152
+ }
1153
+ /** One stored KOL trade on a token. */
1154
+ export interface KolTokenTrade {
1155
+ id: string;
1156
+ kol_name: string | null;
1157
+ kol_twitter: string | null;
1158
+ wallet: string;
1159
+ action: "buy" | "sell";
1160
+ sol_amount: number | null;
1161
+ token_amount: number | null;
1162
+ price_usd_at_trade: number | null;
1163
+ market_cap_usd_at_trade: number | null;
1164
+ tx_signature: string | null;
1165
+ traded_at: string;
1166
+ }
1167
+ /** `GET /kol/tokens/{mint}/trades` — every stored KOL trade on one token, newest first, keyset paged. */
1168
+ export interface KolTokenTradesResponse {
1169
+ token_mint: string;
1170
+ trades: KolTokenTrade[];
1171
+ count: number;
1172
+ /** Distinct KOL addresses on this page. */
1173
+ kols_on_page: number;
1174
+ next_cursor: string | null;
1175
+ /** Exact (limit + 1 probe). */
1176
+ has_more: boolean;
1177
+ note?: string;
1178
+ _rid?: string;
1179
+ }
1131
1180
  export interface KolEntryOrderEntry {
1132
1181
  rank: number;
1133
1182
  kol_name: string | null;
@@ -1272,6 +1321,28 @@ export interface DeployerLeaderboardParams extends PaginationParams {
1272
1321
  export interface DeployerTokensParams extends PaginationParams {
1273
1322
  /** Max results (1–50). Default: 20. */
1274
1323
  limit?: number;
1324
+ /** true = only tokens that graduated (bonded_at set); total / has_more count the bonded set. */
1325
+ only_bonded?: boolean;
1326
+ /** Opt in to `launches_24h` (distinct launches observed in our index over a rolling UTC 24 h window). */
1327
+ include_launches_24h?: boolean;
1328
+ }
1329
+ /**
1330
+ * Launches observed in OUR index over a rolling UTC 24 h window. Indexed
1331
+ * observations only, not a chain-complete count. `count` is null (never 0)
1332
+ * unless `status` is `"observed"`.
1333
+ */
1334
+ export interface DeployerLaunches24h {
1335
+ window_start: string;
1336
+ window_end: string;
1337
+ count: number | null;
1338
+ status: "observed" | "source_unavailable" | "over_budget" | "source_incomplete" | "untracked_deployer";
1339
+ completeness: "indexed_observations_only";
1340
+ provenance?: string;
1341
+ row_cap_per_source?: number;
1342
+ source_rows?: {
1343
+ bonded?: number;
1344
+ pending?: number;
1345
+ };
1275
1346
  }
1276
1347
  export interface DeployerAlertsParams extends PaginationParams {
1277
1348
  /** ISO 8601 datetime — return alerts since this time. */
@@ -1543,6 +1614,8 @@ export interface DeployerTokensResponse {
1543
1614
  is_deployer?: boolean;
1544
1615
  wallet?: string;
1545
1616
  coverage?: TradeCoverage;
1617
+ /** Present only with `include_launches_24h: true`. */
1618
+ launches_24h?: DeployerLaunches24h;
1546
1619
  _rid?: string;
1547
1620
  /** @deprecated Never sent by the API — use `tokens.length`. */
1548
1621
  count?: number;
@@ -1839,6 +1912,14 @@ export interface DeployerActivityEvent {
1839
1912
  /** Time of the event itself (the window applies to this). */
1840
1913
  at: string;
1841
1914
  time_basis: "chain" | "ingest" | "chain_or_ingest";
1915
+ /** dev transfer / dev trade rows restored after a delivery gap (history only, never delivered live). getBlock recovery has `time_basis: "chain"`; spool replay keeps the original receive time (`"ingest"`). */
1916
+ recovered?: boolean;
1917
+ /** When the recovery wrote the row (only with `recovered: true`). */
1918
+ recovered_at?: string | null;
1919
+ /** Received live but classified after a parked creator lookup (broad transfer source); `at` stays the receive time. */
1920
+ late_classified?: boolean;
1921
+ /** Transfers aggregate per (tx, token, direction, actor): how many counterparties the aggregate has (null on rows written before 2026-10-06). */
1922
+ counterparty_count?: number | null;
1842
1923
  mint?: string | null;
1843
1924
  name?: string | null;
1844
1925
  symbol?: string | null;
@@ -1854,6 +1935,18 @@ export interface DeployerActivityEvent {
1854
1935
  sol?: number | null;
1855
1936
  tokens?: number | null;
1856
1937
  price_usd?: number | null;
1938
+ /** Realtime dev-event actor. PRO sees only direct developer events; ULTRA+ may also see proven linked-wallet events when identity stitching is released. */
1939
+ actor_wallet?: string | null;
1940
+ actor_role?: "deployer" | "linked_wallet" | null;
1941
+ /** Exact base-unit amount on persisted realtime dev events (decimal string; use BigInt()). */
1942
+ token_amount_raw?: string | null;
1943
+ supply_pct?: number | null;
1944
+ venue?: string | null;
1945
+ /** Raw transfer counterparty; never an identity claim. */
1946
+ counterparty?: string | null;
1947
+ counterparty_class?: string | null;
1948
+ /** Timeline source/projection marker for realtime dev events. */
1949
+ feed?: string | null;
1857
1950
  first_at?: string | null;
1858
1951
  last_at?: string | null;
1859
1952
  aggregate?: boolean;
@@ -2080,6 +2173,55 @@ export interface AlphaCapTableBuyer {
2080
2173
  historical_win_rate: number | null;
2081
2174
  historical_pnl_sol: number | null;
2082
2175
  historical_tokens: number | null;
2176
+ /** 2026-10, only with `verify_current_balances: true` (ULTRA+): the current balance of this mint, read from chain. */
2177
+ balance_now?: BalanceNow;
2178
+ /** 2026-10, only with `verify_current_balances: true`: from the balance (not the swap ledger). */
2179
+ holding_status?: "verified_nonzero" | "verified_zero";
2180
+ /** 2026-10, only with `verify_current_balances: true`: zero balance although no sell is on the swap ledger. */
2181
+ exited_without_sell?: boolean;
2182
+ /** 2026-10, only with `include_scout_scores: true`: KOL buyers' scout score as of first_buy_at (no hindsight); null for non-KOLs. */
2183
+ scout_score?: {
2184
+ as_of: string;
2185
+ first_touches_30d: number;
2186
+ avg_followers_4h: number | null;
2187
+ swarm_3plus_pct: number | null;
2188
+ swarm_5plus_pct: number | null;
2189
+ scout_tier: "S" | "A" | "B" | "C" | null;
2190
+ } | null;
2191
+ }
2192
+ /** A wallet's current balance of one mint, read from chain (`getTokenAccountsByOwner`). `amount_raw` is a u64 decimal string. */
2193
+ export interface BalanceNow {
2194
+ amount_raw: string;
2195
+ decimals: number | null;
2196
+ amount: string;
2197
+ holding: boolean;
2198
+ token_accounts: number;
2199
+ slot: number;
2200
+ }
2201
+ /** Balance-based held figures for a wallet cohort (bundle, bundle clusters, bundle share). Totals only when every wallet was read (`complete`). */
2202
+ export interface BundleHeldNow {
2203
+ source: "solana_rpc_getTokenAccountsByOwner";
2204
+ checked_at: string;
2205
+ wallets: number;
2206
+ verified_wallets: number;
2207
+ holding_wallets: number;
2208
+ complete: boolean;
2209
+ incomplete_reason: string | null;
2210
+ slot_min: number | null;
2211
+ slot_max: number | null;
2212
+ tokens_held_raw: string | null;
2213
+ tokens_held: string | null;
2214
+ /** RATIO in [0, 1] of circulating_supply_raw. */
2215
+ held_pct_of_supply: number | null;
2216
+ supply_basis: "circulating_supply_raw" | null;
2217
+ }
2218
+ export interface AlphaCapTableParams {
2219
+ /** Rows to return (tier-capped). */
2220
+ limit?: number;
2221
+ /** ULTRA+: read every scored buyer's current balance from chain (`balance_now`, `exited_without_sell`, `onchain_balance_verification`). */
2222
+ verify_current_balances?: boolean;
2223
+ /** Add `scout_score` per KOL buyer plus `scout_scores_status` / `scout_scores_note`. */
2224
+ include_scout_scores?: boolean;
2083
2225
  }
2084
2226
  export interface AlphaCapTableSummary {
2085
2227
  known_alpha_wallets: number;
@@ -2095,6 +2237,22 @@ export interface AlphaCapTableResponse {
2095
2237
  summary: AlphaCapTableSummary;
2096
2238
  /** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
2097
2239
  coverage?: TradeCoverage;
2240
+ /** 2026-10, only with `include_scout_scores: true`. */
2241
+ scout_scores_status?: "ok" | "unavailable" | "timeout" | "error";
2242
+ scout_scores_note?: string;
2243
+ /** 2026-10, only with `verify_current_balances: true` (ULTRA+), after every scored buyer was read. */
2244
+ onchain_balance_verification?: {
2245
+ source: string;
2246
+ checked_at: string;
2247
+ slot_min: number;
2248
+ slot_max: number;
2249
+ verified_wallets: number;
2250
+ complete: boolean;
2251
+ verified_still_holding: number;
2252
+ verified_exited: number;
2253
+ exited_without_sell: number;
2254
+ note: string;
2255
+ };
2098
2256
  /** 2026-10: whether early-buyer ranks 1..20 can be trusted. `gap_overlap` = a
2099
2257
  * recorded ingest gap overlaps launch to the last ranked buy, so a true early
2100
2258
  * buyer may be missing. Absent on older responses. */
@@ -2131,8 +2289,23 @@ export interface AlphaBuyerQualityBreakdown {
2131
2289
  */
2132
2290
  recycled_early_buyer_count: number;
2133
2291
  }
2292
+ export interface AlphaBuyerQualityParams {
2293
+ /** PRO+: add `dump_cluster_held_now` (the dump-cluster early buyers' current holdings, read from chain). */
2294
+ include_balances?: boolean;
2295
+ }
2134
2296
  export interface AlphaBuyerQualityResponse {
2135
2297
  mint: string;
2298
+ /** 2026-10, only with `include_balances: true` (PRO+): the dump-cluster early buyers' CURRENT holdings; totals only when every member was read. */
2299
+ dump_cluster_held_now?: {
2300
+ cohort_size: number;
2301
+ members: number;
2302
+ held_now: BundleHeldNow | Record<string, unknown>;
2303
+ wallets: Array<{
2304
+ wallet: string;
2305
+ balance_now: BalanceNow | null;
2306
+ }>;
2307
+ note: string;
2308
+ };
2136
2309
  score: number;
2137
2310
  confidence: "low" | "medium" | "high";
2138
2311
  signal: "positive" | "neutral" | "negative";
@@ -2344,6 +2517,12 @@ export interface BundleWallet {
2344
2517
  bot_confidence?: string | null;
2345
2518
  /** ULTRA-only — tokens this wallet currently holds. */
2346
2519
  tokens_held?: number | null;
2520
+ /** 2026-10, only with `include_balances: true`: current balance of the mint; null when the cohort read failed. */
2521
+ balance_now?: BalanceNow | null;
2522
+ }
2523
+ export interface TokenBundleParams {
2524
+ /** PRO+: add `held_now` + per-wallet `balance_now` from current chain balances. */
2525
+ include_balances?: boolean;
2347
2526
  }
2348
2527
  /** Bundle-cohort holdings for a token — the wallets that bought together (one
2349
2528
  * atomic transaction or the same slot) and how much of supply they still hold.
@@ -2354,10 +2533,187 @@ export interface BundleWallet {
2354
2533
  export interface TokenBundleResponse {
2355
2534
  mint: string;
2356
2535
  bundle: BundleSummary;
2536
+ /** 2026-10, only with `include_balances: true` (PRO+): balance-based held figures; totals only when complete. */
2537
+ held_now?: BundleHeldNow;
2357
2538
  wallets: BundleWallet[];
2358
2539
  /** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
2359
2540
  coverage?: TradeCoverage;
2360
2541
  }
2542
+ /** Window shared by `bundles()` / `bundleShare()`. */
2543
+ export type BundleWindow = "1h" | "6h" | "24h";
2544
+ export interface TokenBundlesParams {
2545
+ /** Default `"24h"`. */
2546
+ window?: BundleWindow;
2547
+ /** Minimum distinct buyers in one slot to count as a cluster (3–20, default 3). */
2548
+ min_wallets?: number;
2549
+ /** 1–100, default 50. */
2550
+ limit?: number;
2551
+ /** Add `held_now` (current chain balances) to the 3 most recent clusters. */
2552
+ include_balances?: boolean;
2553
+ }
2554
+ /** What a followed cluster's wallets have SOLD since the cluster (bundle-watch sell ledger). */
2555
+ export interface TokenBundleClusterExit {
2556
+ cluster_id: number;
2557
+ followed_until: string;
2558
+ wallets_tracked: number;
2559
+ wallets_sold: number;
2560
+ /** Sold >= 99 % of their cluster buy. */
2561
+ wallets_exited: number;
2562
+ bought_tokens: number;
2563
+ sold_tokens: number;
2564
+ /** Sum over wallets of min(sold, bought in the cluster) / bought in the cluster, 0..1. */
2565
+ sold_pct: number | null;
2566
+ realized_sol: number;
2567
+ last_sell_at: string | null;
2568
+ }
2569
+ /** One slot where >= `min_wallets` distinct wallets bought the token. Evidence, not a verdict. */
2570
+ export interface TokenBundleCluster {
2571
+ slot: number;
2572
+ at: string;
2573
+ minutes_after_launch: number | null;
2574
+ /** `launch` = within 5 minutes of `launch_at`. */
2575
+ phase: "launch" | "later" | "unknown";
2576
+ wallet_count: number;
2577
+ /** Buyers with no earlier buy of this token. */
2578
+ new_wallets: number;
2579
+ /** Transactions carrying 3+ of the buyers (definitively coordinated). */
2580
+ atomic_txs: number;
2581
+ sol_volume: number | null;
2582
+ token_volume: number | null;
2583
+ /** At most 50. */
2584
+ wallets: string[];
2585
+ /** Only with `include_balances: true`, on the 3 most recent clusters. */
2586
+ held_now?: BundleHeldNow;
2587
+ /** null = not followed (only announced clusters are followed, 7 days, first 50 wallets). */
2588
+ exit?: TokenBundleClusterExit | null;
2589
+ }
2590
+ /** `GET /tokens/{mint}/bundles` — every coordinated buy cluster in the window, launch AND later (PRO+). */
2591
+ export interface TokenBundlesResponse {
2592
+ mint: string;
2593
+ window: string;
2594
+ min_wallets: number;
2595
+ launch_at: string | null;
2596
+ summary: {
2597
+ cluster_count: number;
2598
+ launch_clusters: number;
2599
+ later_clusters: number;
2600
+ latest_cluster_at: string | null;
2601
+ largest_cluster_wallets: number;
2602
+ /** Window baseline (null when no cluster was found). On busy tokens unrelated buyers share slots. */
2603
+ baseline: Record<string, unknown> | null;
2604
+ };
2605
+ clusters: TokenBundleCluster[];
2606
+ /** Only with `include_balances: true`. */
2607
+ held_now_clusters?: number;
2608
+ /** Whether the exit ledger could be read; clusters are served either way (`exit` null when not ok). */
2609
+ exit_tracking?: "ok" | "unavailable" | "error";
2610
+ exit_note?: string;
2611
+ note?: string;
2612
+ _rid?: string;
2613
+ }
2614
+ export interface TokenBundleShareParams {
2615
+ /** Which later clusters to include (the launch bundle is always included). Default `"24h"`. */
2616
+ window?: BundleWindow;
2617
+ /** 3–20, default 3. */
2618
+ min_wallets?: number;
2619
+ }
2620
+ /** `GET /tokens/{mint}/bundle-share` — ONE figure: share of supply held now by every bundle wallet (PRO+, cached 30 s per token). */
2621
+ export interface TokenBundleShareResponse {
2622
+ mint: string;
2623
+ window: string;
2624
+ min_wallets: number;
2625
+ /** RATIO in [0, 1]. Null unless every wallet was read (see `held_now.incomplete_reason`), never a partial sum. */
2626
+ bundled_pct_of_supply_now: number | null;
2627
+ /** `launch_cohort_only` = the cluster function was not available; only the launch bundle is counted. */
2628
+ scope: "launch_and_clusters" | "launch_cohort_only";
2629
+ clusters_status: "ok" | "unavailable" | "timeout" | "error";
2630
+ wallets: {
2631
+ total: number;
2632
+ launch_cohort_wallets: number;
2633
+ cluster_wallets: number;
2634
+ overlap: number;
2635
+ clusters_counted: number;
2636
+ verified: number;
2637
+ holding: number;
2638
+ max: number;
2639
+ };
2640
+ held_now: BundleHeldNow;
2641
+ as_of: string;
2642
+ note?: string;
2643
+ _rid?: string;
2644
+ }
2645
+ /** Filters for the `token:bundles` WS channel (all optional, AND-combined; invalid values reject the channel). */
2646
+ export interface TokenBundlesFilters {
2647
+ /** Only these mints (at most 250). */
2648
+ mints?: string[];
2649
+ /** Minimum distinct buyers in the cluster (3-50, count at detection). */
2650
+ min_wallets?: number;
2651
+ /** Minimum buyers new to the token (3-50). */
2652
+ min_new_wallets?: number;
2653
+ /** `launch` = within 5 minutes of the token's first sighting. */
2654
+ phases?: Array<"launch" | "later" | "unknown">;
2655
+ /** Only clusters where one transaction carried 3+ of the buyers. */
2656
+ atomic_only?: boolean;
2657
+ /** Only these event types (default both). */
2658
+ bundle_events?: Array<"token:bundle_cluster" | "token:bundle_exit">;
2659
+ }
2660
+ /**
2661
+ * `token:bundle_cluster` on WS `token:bundles` (PRO+): one NEW coordinated buy
2662
+ * cluster on a Solana token, launch or later: one slot where >= 3 wallets
2663
+ * bought and >= 3 of them had never bought the token before. Only stored buys
2664
+ * count (0.05 SOL / $3.50 persistence floor). Announced once; evidence, not a
2665
+ * verdict. For the share of supply these wallets hold now call `alpha.bundleShare()`.
2666
+ */
2667
+ export interface TokenBundleClusterEvent {
2668
+ /** bundle_cluster_events row id (dedupe key). */
2669
+ id: number;
2670
+ chain: "solana";
2671
+ mint: string;
2672
+ slot: number;
2673
+ /** First buy of the cluster (ISO). */
2674
+ at: string;
2675
+ minutes_after_launch: number | null;
2676
+ phase: "launch" | "later" | "unknown";
2677
+ launch_at: string | null;
2678
+ wallet_count: number;
2679
+ new_wallets: number;
2680
+ /** Transactions carrying 3+ of the buyers. */
2681
+ atomic_txs: number;
2682
+ sol_volume: number | null;
2683
+ token_volume: number | null;
2684
+ /** Up to 50 buyer wallets. */
2685
+ wallets: string[];
2686
+ /** When bundle-watch detected it (ISO). */
2687
+ detected_at: string;
2688
+ }
2689
+ /**
2690
+ * `token:bundle_exit` on WS `token:bundles` (PRO+): an announced cluster's
2691
+ * wallets have sold `threshold_pct` (25 / 50 / 90 / 100) % of what they bought
2692
+ * IN the cluster, each threshold once. Only sells by the bundle wallets
2693
+ * themselves, followed for 7 days after detection; first 50 wallets.
2694
+ */
2695
+ export interface TokenBundleExitEvent extends Omit<TokenBundleClusterEvent, "sol_volume" | "token_volume" | "wallets"> {
2696
+ cluster_id: number;
2697
+ cluster_detected_at: string | null;
2698
+ threshold_pct: 25 | 50 | 90 | 100;
2699
+ wallets_tracked: number;
2700
+ wallets_sold: number;
2701
+ /** Wallets that sold at least 99 % of their cluster buy. */
2702
+ wallets_exited: number;
2703
+ bought_tokens: number;
2704
+ sold_tokens: number;
2705
+ /** sum over wallets of min(sold, bought) / bought, 0..1. */
2706
+ sold_pct: number | null;
2707
+ realized_sol: number;
2708
+ last_sell_at: string | null;
2709
+ recent_sells: Array<{
2710
+ wallet: string;
2711
+ tx_signature: string;
2712
+ tokens: number | null;
2713
+ sol: number | null;
2714
+ at: string;
2715
+ }>;
2716
+ }
2361
2717
  /** One DEX pool a token trades in. `is_active` distinguishes live pools from
2362
2718
  * parked/drained ones; `liquidity_usd`/`last_price_sol`/`last_swap_at` are null
2363
2719
  * when the pool has no recent on-chain activity. */
@@ -2392,7 +2748,33 @@ export interface TokenPoolsResponse {
2392
2748
  /** Wallet-intelligence label on a live holder (`GET /tokens/{mint}/holders`).
2393
2749
  * Labels come from MadeOnSol's swap-ledger data — an empty `labels[]` means
2394
2750
  * "unknown to us", NOT "verified clean". */
2395
- export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster";
2751
+ export type TokenHolderLabel = "deployer" | "kol" | "early_buyer" | "buyer" | "bundle" | "bot" | "dump_cluster" | "sniper" | "bundler_wallet" | "dumper" | "alpha_tracked";
2752
+ /** Per label: `evaluated: false` means insufficient evidence, NOT a verified negative. */
2753
+ export type WalletFlagLabelCoverage = Record<string, {
2754
+ evaluated: boolean;
2755
+ reason?: string;
2756
+ }>;
2757
+ /** Per-holder flags, only with `include_wallet_flags: true`. Null when the flag sources were unavailable. */
2758
+ export interface TokenHolderWalletFlags {
2759
+ is_sniper: boolean;
2760
+ is_bundler: boolean;
2761
+ is_dumper: boolean;
2762
+ is_kol: boolean;
2763
+ is_alpha_tracked: boolean;
2764
+ is_bot_high_confidence: boolean;
2765
+ label_coverage: WalletFlagLabelCoverage;
2766
+ }
2767
+ /** Top-level flag status, only with `include_wallet_flags: true`. */
2768
+ export interface WalletFlagsMeta {
2769
+ status: "available" | "partial" | "unavailable";
2770
+ rule_version?: string;
2771
+ note?: string;
2772
+ [key: string]: unknown;
2773
+ }
2774
+ export interface TokenHoldersParams {
2775
+ /** Opt in to per-holder `wallet_flags` + `wallet_flags_meta` (PRO+, tier-disclosed rows only). */
2776
+ include_wallet_flags?: boolean;
2777
+ }
2396
2778
  /** Why an owner was excluded from the circulating denominator and listed in
2397
2779
  * `excluded[]`: `pool` = vault authority of a known pool (`dex` + `pool_address`
2398
2780
  * set); `bonding_curve` = pump.fun / LaunchLab curve; `burn` = incinerator /
@@ -2428,6 +2810,8 @@ export interface TokenHolder {
2428
2810
  /** Alpha-wallet classifier enum (`"none"`/`"low"`/`"medium"`/`"high"`), not a number. */
2429
2811
  bot_confidence: string | null;
2430
2812
  historical_win_rate: number | null;
2813
+ /** Only with `include_wallet_flags: true`; null when the flag sources were unavailable. */
2814
+ wallet_flags?: TokenHolderWalletFlags | null;
2431
2815
  }
2432
2816
  /** An owner excluded from the circulating denominator (pool / bonding curve /
2433
2817
  * burn / unattributed program account), NAMED where possible. */
@@ -2522,6 +2906,8 @@ export interface TokenHoldersResponse {
2522
2906
  concentration: TokenHoldersConcentration;
2523
2907
  deployer: TokenHoldersDeployer | null;
2524
2908
  source: TokenHoldersSource;
2909
+ /** Only with `include_wallet_flags: true`. */
2910
+ wallet_flags_meta?: WalletFlagsMeta;
2525
2911
  }
2526
2912
  /** Locker program a contract lives under. LP locks are NOT covered (token / vesting locks only). */
2527
2913
  export type TokenLockProgram = "streamflow" | "jupiter_lock" | "bonfida_vesting" | "smithii_vesting" | "sablier_lockup";
@@ -4006,6 +4392,8 @@ export interface TokenDepthPool extends TokenDepthPoolBase {
4006
4392
  * `"reserves_unavailable"`) rather than a wrong number. */
4007
4393
  export interface TokenDepthUnsupportedPool extends TokenDepthPoolBase {
4008
4394
  reason: string;
4395
+ /** With reason `"dlmm_insufficient_liquidity_in_loaded_bins"`: the largest SOL input (incl. fees) the loaded bins can absorb (0 = no buy-side liquidity in the window). */
4396
+ fillable_up_to_sol?: number;
4009
4397
  }
4010
4398
  /** Per-pool price-impact / slippage depth. Impact is per-pool, not
4011
4399
  * router-optimal. **PRO/ULTRA only.** */
@@ -4986,6 +5374,17 @@ export interface ToolsSearchResponse {
4986
5374
  _rid?: string;
4987
5375
  }
4988
5376
  export interface StreamToken {
5377
+ /** Only present when ShredPrism is active and the subscriber is ULTRA/BUSINESS/ENTERPRISE. */
5378
+ early_ws_url?: string;
5379
+ early_stream?: {
5380
+ channels: "early:deploys"[];
5381
+ subscribe_example: {
5382
+ type: "subscribe";
5383
+ channels: "early:deploys"[];
5384
+ };
5385
+ execution_status: "unknown";
5386
+ note: string;
5387
+ };
4989
5388
  token: string;
4990
5389
  /** Always `null` since 2026-08-27 — stream tokens never expire. Kept for wire compatibility; do not schedule refreshes on it. */
4991
5390
  expires_at: string | null;
@@ -5616,6 +6015,17 @@ declare class KolClient {
5616
6015
  * @param params Optional: limit (1–100).
5617
6016
  */
5618
6017
  tokenEntryOrder(mint: string, params?: KolEntryOrderParams): Promise<KolEntryOrderResponse>;
6018
+ /**
6019
+ * Every stored KOL trade on one token, newest first, keyset paged with
6020
+ * `next_cursor` / exact `has_more` (`token(mint)` is the per-KOL aggregate;
6021
+ * this is the per-trade list behind it). Same tier depth as `feed()`: BASIC
6022
+ * gets the 5-minute delayed tape and 20 rows per page. KOL trades below the
6023
+ * persistence floor (0.05 SOL, or $3.50 on a stable-quoted leg) are not stored.
6024
+ * `GET /kol/tokens/{mint}/trades`
6025
+ * @param mint Token mint address.
6026
+ * @param params Optional: limit (1–200), action, kol, since, cursor.
6027
+ */
6028
+ tokenTrades(mint: string, params?: KolTokenTradesParams): Promise<KolTokenTradesResponse>;
5619
6029
  /**
5620
6030
  * Side-by-side comparison of 2–5 KOL wallets.
5621
6031
  * Returns full scores (winrate/ROI/profit factor/early entry/consistency) and, on PRO+, a 30d overlap array.
@@ -5682,14 +6092,14 @@ declare class AlphaClient {
5682
6092
  * **BASIC**: HTTP 403. **PRO**: top 10, truncated wallets. **ULTRA**: top 20, full wallets.
5683
6093
  * @param mint Token mint address.
5684
6094
  */
5685
- capTable(mint: string): Promise<AlphaCapTableResponse>;
6095
+ capTable(mint: string, params?: AlphaCapTableParams): Promise<AlphaCapTableResponse>;
5686
6096
  /**
5687
6097
  * 0–100 buyer quality score for a token's early-buyer cohort.
5688
6098
  * Signal: "positive" (>60), "neutral" (40–60), "negative" (<40). 5-minute cache.
5689
6099
  * BASIC: score + confidence + signal. PRO/ULTRA: + breakdown.
5690
6100
  * @param mint Token mint address.
5691
6101
  */
5692
- buyerQuality(mint: string): Promise<AlphaBuyerQualityResponse>;
6102
+ buyerQuality(mint: string, params?: AlphaBuyerQualityParams): Promise<AlphaBuyerQualityResponse>;
5693
6103
  /**
5694
6104
  * v2.13 — Transparent 0–100 token rug-risk/safety score (higher = riskier).
5695
6105
  * Returns a `band` (safe/caution/danger), an explainable `factors` array that
@@ -5712,7 +6122,30 @@ declare class AlphaClient {
5712
6122
  * (`kol_name`, `win_rate`, `bot_confidence`) and per-wallet `tokens_held`.
5713
6123
  * @param mint Token mint address.
5714
6124
  */
5715
- bundle(mint: string): Promise<TokenBundleResponse>;
6125
+ bundle(mint: string, params?: TokenBundleParams): Promise<TokenBundleResponse>;
6126
+ /**
6127
+ * Every coordinated buy cluster on a token in a window, the launch bundle AND
6128
+ * clusters that enter later: one slot where at least `min_wallets` distinct
6129
+ * wallets bought. `bundle()` stays the launch-cohort view. Per cluster: slot,
6130
+ * time, `phase`, `wallet_count`, `new_wallets`, `atomic_txs`, volumes,
6131
+ * wallets and (for followed clusters) `exit`. `summary.baseline` gives the
6132
+ * window's buys per active slot: a cluster is evidence, not a verdict. Only
6133
+ * stored buys count. `include_balances: true` adds `held_now` to the 3 most
6134
+ * recent clusters. **PRO+.** `GET /tokens/{mint}/bundles`
6135
+ * @param mint Token mint address.
6136
+ * @param params Optional: window, min_wallets (3–20), limit (1–100), include_balances.
6137
+ */
6138
+ bundles(mint: string, params?: TokenBundlesParams): Promise<TokenBundlesResponse>;
6139
+ /**
6140
+ * ONE figure: `bundled_pct_of_supply_now`, the share of supply held RIGHT NOW
6141
+ * by every bundle wallet (launch bundle plus every cluster wallet in the
6142
+ * window, each counted once), read from chain balances. Null when not every
6143
+ * wallet could be read, never a partial sum. Cached 30 s per token (`as_of`),
6144
+ * so polling is cheap. **PRO+.** `GET /tokens/{mint}/bundle-share`
6145
+ * @param mint Token mint address.
6146
+ * @param params Optional: window, min_wallets (3–20).
6147
+ */
6148
+ bundleShare(mint: string, params?: TokenBundleShareParams): Promise<TokenBundleShareResponse>;
5716
6149
  /**
5717
6150
  * Per-venue liquidity map: every DEX pool a token trades in, each flagged
5718
6151
  * live (`is_active`) or parked, with `liquidity_usd`, `last_price_sol`, and
@@ -5791,7 +6224,7 @@ declare class AlphaClient {
5791
6224
  * 404 `error_kind: "not_a_mint"`. **PRO+** — BASIC receives HTTP 403.
5792
6225
  * @param mint Token mint address.
5793
6226
  */
5794
- holders(mint: string): Promise<TokenHoldersResponse>;
6227
+ holders(mint: string, params?: TokenHoldersParams): Promise<TokenHoldersResponse>;
5795
6228
  }
5796
6229
  declare class TokenClient {
5797
6230
  private readonly _fetch;
@@ -6214,7 +6647,24 @@ declare class WalletTrackerClient {
6214
6647
  */
6215
6648
  summary(params?: WalletTrackerSummaryParams): Promise<WalletTrackerSummaryResponse>;
6216
6649
  }
6650
+ /** Encoded requests, not execution measurements. Missing resource bits stay null. */
6651
+ export interface EarlyTransactionConfig {
6652
+ config_mask: number;
6653
+ priority_fee_lamports: string | null;
6654
+ compute_unit_limit: number | null;
6655
+ loaded_accounts_data_size_limit: number | null;
6656
+ heap_size: number | null;
6657
+ }
6217
6658
  export interface SniperDeploy {
6659
+ /** Deduplicate by event_id; execution remains unknown until separately resolved. */
6660
+ event_id?: string;
6661
+ source?: "shredprism" | "deshred";
6662
+ outer_instruction_index?: number | null;
6663
+ observation_stage?: "observed";
6664
+ execution_status?: "unknown" | "succeeded" | "failed" | "unresolved";
6665
+ transaction_version?: "legacy" | 0 | 1 | null;
6666
+ transaction_config?: EarlyTransactionConfig | null;
6667
+ fee_payer?: string | null;
6218
6668
  mint: string;
6219
6669
  name: string | null;
6220
6670
  symbol: string | null;
@@ -6235,9 +6685,11 @@ export interface SniperDeploy {
6235
6685
  deployer_runner_rate?: number | null;
6236
6686
  /** Confidence denominator; gate on >=3. */
6237
6687
  deployer_labeled_tokens?: number | null;
6238
- /** "deshred" — detection is pre-execution, so the payload carries no MC/logs/balances. */
6688
+ /** Null until separate chain evidence is available; observation is not execution. */
6239
6689
  confirmed_on_chain: boolean | null;
6240
6690
  confirmed_at: string | null;
6691
+ /** ShredPrism: first observed successful finalized outcome (observation time); null for legacy deshred rows. */
6692
+ finalized_at?: string | null;
6241
6693
  /** v2.20 — slot-window snipe rollup for this deploy (slots [-1..+3]). `null`
6242
6694
  * until the ~10-min settle window has passed or when the mint is outside the
6243
6695
  * pump.fun-pipeline write-gate — absent, not zero. */
@@ -6295,7 +6747,7 @@ export interface SniperWatchlistRemoveResponse {
6295
6747
  removed: string;
6296
6748
  }
6297
6749
  /**
6298
- * Deshred pre-confirm pump.fun sniper feed. PRO + ULTRA.
6750
+ * Early deploy observations. ULTRA/BUSINESS/ENTERPRISE; no guaranteed timing lead.
6299
6751
  * Live alerts flow via webhook (`sniper:deploy`), the `sniper:deploys` WebSocket
6300
6752
  * channel; these methods are for catch-up,
6301
6753
  * backtesting, and managing the ULTRA custom watchlist.
@@ -6307,11 +6759,11 @@ declare class SniperClient {
6307
6759
  private readonly _baseUrl;
6308
6760
  constructor(_get: <T>(url: string) => Promise<T>, _post: <T>(url: string, body?: unknown) => Promise<T>, _delete: <T>(url: string) => Promise<T>, _baseUrl: string);
6309
6761
  /**
6310
- * Newest-first deshred deploy feed. PRO sees elite/good deployers; ULTRA sees all.
6762
+ * Newest-first early deploy feed. ULTRA/BUSINESS/ENTERPRISE only.
6311
6763
  * Pass `watchlist: true` (ULTRA) to narrow to your custom deployer watchlist.
6312
6764
  */
6313
6765
  recent(params?: SniperRecentParams): Promise<SniperRecentResponse>;
6314
- /** Deshred deploys filtered to a single deployer wallet. ULTRA only. */
6766
+ /** Early deploys filtered to a single deployer wallet. ULTRA+ only. */
6315
6767
  byDeployer(wallet: string, params?: {
6316
6768
  limit?: number;
6317
6769
  }): Promise<SniperByDeployerResponse>;
@@ -6833,7 +7285,7 @@ export declare class MadeOnSol {
6833
7285
  readonly firstTouchSubscriptions: FirstTouchSubscriptionsClient;
6834
7286
  /** Price alerts CRUD — PRO/ULTRA. Sub-second dip/recovery detection. */
6835
7287
  readonly priceAlerts: PriceAlertsClient;
6836
- /** Deshred pre-confirm pump.fun sniper feed + custom watchlist — PRO/ULTRA. */
7288
+ /** Early deploy observations + custom watchlist — ULTRA/BUSINESS/ENTERPRISE. */
6837
7289
  readonly sniper: SniperClient;
6838
7290
  /** Copy-trade rules + fired signals — PRO/ULTRA. */
6839
7291
  readonly copytrade: CopyTradeClient;