madeonsol 3.0.0 → 4.0.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
@@ -233,22 +233,110 @@ export interface KolLeaderboardResponse {
233
233
  min_winrate?: number;
234
234
  _rid?: string;
235
235
  }
236
+ /** One row of `pnl_by_token` on `GET /kol/{wallet}` (only with `include: "pnl_by_token"`). SOL figures. */
236
237
  export interface KolPnlByToken {
237
- mint: string;
238
+ token_mint: string;
239
+ token_symbol: string | null;
238
240
  token_name: string | null;
241
+ buy_count: number;
242
+ sell_count: number;
243
+ /** SOL spent buying this token. */
244
+ total_bought: number;
245
+ /** SOL received selling this token. */
246
+ total_sold: number;
247
+ /** total_sold − total_bought, SOL. */
248
+ pnl: number;
249
+ result: "open" | "win" | "loss";
250
+ first_trade: string;
251
+ last_trade: string;
252
+ /** @deprecated Never sent by the API — use `token_mint`. */
253
+ mint?: string;
254
+ /** @deprecated Never sent by the API — use `pnl` (SOL). */
255
+ realized_pnl_usd?: number;
256
+ }
257
+ /** `recent_winners` / `recent_losers` row on `GET /kol/{wallet}`. */
258
+ export interface KolWalletClosedToken {
259
+ token_mint: string;
239
260
  token_symbol: string | null;
240
- realized_pnl_usd: number;
261
+ token_name: string | null;
262
+ pnl: number;
263
+ roi_pct: number | null;
241
264
  buy_count: number;
242
265
  sell_count: number;
266
+ first_trade: string;
267
+ last_trade: string;
243
268
  }
269
+ /** `GET /kol/{wallet}` — what `client.kol.wallet()` returns. */
244
270
  export interface KolWalletProfile {
245
- wallet: string;
246
- kol_name: string | null;
247
- kol_twitter: string | null;
248
- total_pnl_usd: number;
249
- win_rate: number;
250
- trade_count: number;
271
+ kol: {
272
+ name: string;
273
+ wallet: string;
274
+ twitter_url: string | null;
275
+ strategy_tag: string | null;
276
+ auto_strategy_tag: string | null;
277
+ };
278
+ /** Sums over the returned trades only (not full history). `win_rate` (0–100) only when per-token PnL was computed. */
279
+ stats: {
280
+ pnl: number;
281
+ buy_count: number;
282
+ sell_count: number;
283
+ volume: number;
284
+ win_rate?: number;
285
+ };
286
+ scores: {
287
+ winrate_7d: number | null;
288
+ winrate_30d: number | null;
289
+ avg_roi_7d: number | null;
290
+ avg_roi_30d: number | null;
291
+ profit_factor_7d: number | null;
292
+ profit_factor_30d: number | null;
293
+ pnl_7d: number | null;
294
+ pnl_30d: number | null;
295
+ early_entry_pct_30d: number | null;
296
+ consistency_7d: number | null;
297
+ median_hold_minutes_30d: number | null;
298
+ closed_positions_7d: number;
299
+ closed_positions_30d: number;
300
+ is_heating_up: boolean;
301
+ is_cold: boolean;
302
+ };
303
+ /** Percentile vs the other tracked KOLs; null when not ranked. */
304
+ peer_ranks: {
305
+ percentile_pnl_7d: number | null;
306
+ percentile_winrate_7d: number | null;
307
+ percentile_pnl_30d: number | null;
308
+ percentile_winrate_30d: number | null;
309
+ percentile_early_entry_30d: number | null;
310
+ };
311
+ /** Up to 100 most recent trades. */
312
+ recent_trades: {
313
+ token_mint: string;
314
+ token_name: string | null;
315
+ token_symbol: string | null;
316
+ action: KolAction;
317
+ sol_amount: number;
318
+ token_amount: number;
319
+ market_cap_usd_at_trade: number | null;
320
+ price_usd_at_trade: number | null;
321
+ tx_signature: string;
322
+ traded_at: string;
323
+ }[];
251
324
  pnl_by_token?: KolPnlByToken[];
325
+ recent_winners?: KolWalletClosedToken[];
326
+ recent_losers?: KolWalletClosedToken[];
327
+ _rid?: string;
328
+ /** @deprecated Never sent by the API — use `kol.wallet`. */
329
+ wallet?: string;
330
+ /** @deprecated Never sent by the API — use `kol.name`. */
331
+ kol_name?: string | null;
332
+ /** @deprecated Never sent by the API — use `kol.twitter_url`. */
333
+ kol_twitter?: string | null;
334
+ /** @deprecated Never sent by the API — use `stats.pnl` (SOL). */
335
+ total_pnl_usd?: number;
336
+ /** @deprecated Never sent by the API — use `stats.win_rate`. */
337
+ win_rate?: number;
338
+ /** @deprecated Never sent by the API — use `stats.buy_count + stats.sell_count`. */
339
+ trade_count?: number;
252
340
  }
253
341
  export interface CoordinationKol {
254
342
  name: string;
@@ -468,6 +556,26 @@ export interface ScoutLeaderboardParams {
468
556
  scout_tier?: ScoutTier;
469
557
  sort?: ScoutLeaderboardSort;
470
558
  }
559
+ /** One row of `GET /kol/scouts/leaderboard`. */
560
+ export interface ScoutLeaderboardEntry {
561
+ wallet: string;
562
+ name: string | null;
563
+ avatar_url: string | null;
564
+ twitter_url: string | null;
565
+ scout_tier: ScoutTier | null;
566
+ first_touches_30d: number | null;
567
+ avg_followers_4h: number | null;
568
+ /** % of first touches that drew ≥3 other KOLs within 4h. */
569
+ swarm_3plus_pct: number | null;
570
+ /** % of first touches that drew ≥5 other KOLs within 4h. */
571
+ swarm_5plus_pct: number | null;
572
+ computed_at: string;
573
+ }
574
+ export interface ScoutLeaderboardResponse {
575
+ scouts: ScoutLeaderboardEntry[];
576
+ count: number;
577
+ _rid?: string;
578
+ }
471
579
  /**
472
580
  * GET /tokens/{mint}/kol-consensus. FIX (2026-10-03 parity): the figures are
473
581
  * nested under `consensus` — that is what the route has always returned;
@@ -605,6 +713,24 @@ export interface CoordinationHistoryParams {
605
713
  since?: string;
606
714
  min_score?: number;
607
715
  }
716
+ /** One past coordination cluster (deduped per token) on `GET /kol/coordination/history`. */
717
+ export interface CoordinationHistoryEvent {
718
+ token_mint: string;
719
+ /** Most recent fire time for this token. */
720
+ fired_at: string;
721
+ /** Highest score observed across the token's fires. */
722
+ coordination_score: number;
723
+ total_fires: number;
724
+ /** Distinct KOL wallets that bought the token. */
725
+ kol_buyers: number;
726
+ current_mc_usd: number | null;
727
+ current_price_usd: number | null;
728
+ }
729
+ export interface CoordinationHistoryResponse {
730
+ events: CoordinationHistoryEvent[];
731
+ count: number;
732
+ _rid?: string;
733
+ }
608
734
  export type ScoutTier = "S" | "A" | "B" | "C";
609
735
  export interface FirstTouchesParams {
610
736
  /** ISO datetime — return events strictly newer than this. Polling cursor. */
@@ -899,6 +1025,11 @@ export interface KolOpenPosition {
899
1025
  token_name: string;
900
1026
  buy_count: number;
901
1027
  bought_sol: number;
1028
+ /** Current value of the remaining position, SOL (0 when unpriced — check `is_priced`). */
1029
+ held_value_sol?: number;
1030
+ unrealized_pnl_sol?: number;
1031
+ /** false = no live price for this token, so held_value_sol / unrealized_pnl_sol are not a valuation. */
1032
+ is_priced?: boolean;
902
1033
  first_buy_at: string;
903
1034
  }
904
1035
  export interface KolPnlResponse {
@@ -947,16 +1078,51 @@ export interface KolTrendingResponse {
947
1078
  min_kols: number;
948
1079
  _rid?: string;
949
1080
  }
950
- export interface KolTokenActivity {
951
- mint: string;
952
- token_name: string | null;
953
- token_symbol: string | null;
954
- kol_buyers: string[];
955
- kol_sellers: string[];
1081
+ /** One KOL on `GET /kol/tokens/{mint}` (up to 50, by net flow). SOL figures. */
1082
+ export interface KolTokenKol {
1083
+ name: string;
1084
+ wallet: string;
956
1085
  buy_count: number;
957
1086
  sell_count: number;
958
- total_sol_volume: number;
959
- recent_trades: KolTrade[];
1087
+ /** SOL this KOL spent buying the token. */
1088
+ total_bought: number;
1089
+ /** SOL this KOL received selling the token. */
1090
+ total_sold: number;
1091
+ net_sol: number;
1092
+ position: "net_buyer" | "net_seller" | "neutral";
1093
+ first_trade: string;
1094
+ last_trade: string;
1095
+ }
1096
+ /** `GET /kol/tokens/{mint}` — what `client.kol.token()` returns. */
1097
+ export interface KolTokenActivity extends FreeTierDelayMeta {
1098
+ token_mint: string;
1099
+ summary: {
1100
+ kol_count: number;
1101
+ total_bought_sol: number;
1102
+ total_sold_sol: number;
1103
+ net_flow_sol: number;
1104
+ signal: "accumulating" | "distributing";
1105
+ };
1106
+ kols: KolTokenKol[];
1107
+ _rid?: string;
1108
+ /** @deprecated Never sent by the API — use `token_mint`. */
1109
+ mint?: string;
1110
+ /** @deprecated Never sent by the API. */
1111
+ token_name?: string | null;
1112
+ /** @deprecated Never sent by the API. */
1113
+ token_symbol?: string | null;
1114
+ /** @deprecated Never sent by the API — use `kols`. */
1115
+ kol_buyers?: string[];
1116
+ /** @deprecated Never sent by the API — use `kols`. */
1117
+ kol_sellers?: string[];
1118
+ /** @deprecated Never sent by the API. */
1119
+ buy_count?: number;
1120
+ /** @deprecated Never sent by the API. */
1121
+ sell_count?: number;
1122
+ /** @deprecated Never sent by the API — use `summary`. */
1123
+ total_sol_volume?: number;
1124
+ /** @deprecated Never sent by the API. */
1125
+ recent_trades?: KolTrade[];
960
1126
  }
961
1127
  export interface KolEntryOrderParams {
962
1128
  /** Max entries to return (1–100). Default: 50. */
@@ -1033,6 +1199,15 @@ export interface KolCompareResponse {
1033
1199
  profiles: KolCompareProfile[];
1034
1200
  /** Tokens bought by 2+ of the provided wallets in the last 30d (PRO+ only). */
1035
1201
  overlap?: KolCompareOverlapToken[];
1202
+ /** `overlap` is the top 25 of `total` qualifying tokens over the full 30 d window; `total: null` = the aggregate failed (unknown, not 0). */
1203
+ overlap_meta?: {
1204
+ window_start: string;
1205
+ min_wallets: number;
1206
+ total: number | null;
1207
+ returned: number;
1208
+ has_more: boolean | null;
1209
+ complete: boolean;
1210
+ };
1036
1211
  }
1037
1212
  export type KolAlertType = "consensus_cluster" | "fresh_token_kol_buy" | "heating_up";
1038
1213
  export type KolAlertWindow = "1h" | "6h" | "24h";
@@ -1152,6 +1327,22 @@ export interface DeployerStats {
1152
1327
  bonds_detected: number;
1153
1328
  bond_rate: number;
1154
1329
  tiers: DeployerTierCounts;
1330
+ /** Average market cap (USD) at alert time per tier, last 30 d. Values are null (unknown, never 0) when `mc_at_alert_complete` is false. */
1331
+ avg_mc_at_alert_usd_30d?: {
1332
+ elite: number | null;
1333
+ good: number | null;
1334
+ rising: number | null;
1335
+ } | null;
1336
+ /** Alerts behind each average (every alert in the 30 d window). null when the aggregate failed. */
1337
+ mc_at_alert_samples_30d?: {
1338
+ elite: number | null;
1339
+ good: number | null;
1340
+ rising: number | null;
1341
+ } | null;
1342
+ mc_at_alert_window_start?: string;
1343
+ /** false = the per-tier MC aggregate failed; the two maps above are unknown. */
1344
+ mc_at_alert_complete?: boolean;
1345
+ coverage?: TradeCoverage;
1155
1346
  _rid?: string;
1156
1347
  }
1157
1348
  export interface DeployerSummary {
@@ -1226,6 +1417,45 @@ export interface DeployerLaunchpadToken {
1226
1417
  bonded_at: string | null;
1227
1418
  peak_market_cap: number | null;
1228
1419
  }
1420
+ /**
1421
+ * One entry of `pump_tokens` on `GET /deployer-hunter/{wallet}` — passed through
1422
+ * from the live pump.fun API, so every field is optional and the object may carry
1423
+ * more keys than listed here.
1424
+ */
1425
+ export interface DeployerPumpToken {
1426
+ mint?: string;
1427
+ name?: string;
1428
+ symbol?: string;
1429
+ image_uri?: string;
1430
+ creator?: string;
1431
+ /** Unix ms. */
1432
+ created_timestamp?: number;
1433
+ /** Bonded / graduated. */
1434
+ complete?: boolean;
1435
+ ath_market_cap?: number;
1436
+ usd_market_cap?: number;
1437
+ market_cap?: number;
1438
+ reply_count?: number;
1439
+ pool_address?: string;
1440
+ pump_swap_pool?: string;
1441
+ [key: string]: unknown;
1442
+ }
1443
+ /** One token row of `GET /deployer-hunter/{wallet}/tokens`. */
1444
+ export interface DeployerTokenRow {
1445
+ id: string;
1446
+ token_mint: string;
1447
+ token_name: string | null;
1448
+ token_symbol: string | null;
1449
+ deployed_at: string;
1450
+ bonded_at: string | null;
1451
+ time_to_bond_minutes: number | null;
1452
+ peak_market_cap: number | null;
1453
+ mc_at_bond: number | null;
1454
+ market_cap_at_alert: number | null;
1455
+ alerted_at: string | null;
1456
+ /** create → migrate within ~90 s (curve filled by a bundle). */
1457
+ instant_bond: boolean;
1458
+ }
1229
1459
  /** The `deployers` row inside {@link DeployerProfileResponse}. */
1230
1460
  export interface DeployerProfileRow {
1231
1461
  id: string;
@@ -1273,7 +1503,7 @@ export interface DeployerProfileResponse {
1273
1503
  avgAthMc: number;
1274
1504
  } | null;
1275
1505
  /** Raw pump.fun API token list (pump.fun-launched tokens only). */
1276
- pump_tokens: Record<string, unknown>[];
1506
+ pump_tokens: DeployerPumpToken[];
1277
1507
  /** true when the pump.fun API read failed (pump_tokens is then empty); null on the not-a-deployer answer. */
1278
1508
  pump_error: boolean | null;
1279
1509
  /** Our own LaunchLab/bonk + bags tokens for this deployer. */
@@ -1302,10 +1532,20 @@ export interface DeployerProfile {
1302
1532
  avg_time_to_bond_minutes?: number | null;
1303
1533
  tokens?: DeployerToken[] | null;
1304
1534
  }
1535
+ /** `GET /deployer-hunter/{wallet}/tokens` — what `client.deployer.tokens()` returns. */
1305
1536
  export interface DeployerTokensResponse {
1306
- tokens: DeployerToken[];
1307
- count: number;
1537
+ tokens: DeployerTokenRow[];
1308
1538
  total: number;
1539
+ limit: number;
1540
+ offset: number;
1541
+ has_more: boolean;
1542
+ /** Only on the untracked-wallet answer (`is_deployer: false`, empty `tokens`). */
1543
+ is_deployer?: boolean;
1544
+ wallet?: string;
1545
+ coverage?: TradeCoverage;
1546
+ _rid?: string;
1547
+ /** @deprecated Never sent by the API — use `tokens.length`. */
1548
+ count?: number;
1309
1549
  }
1310
1550
  export interface KolBuysSummary {
1311
1551
  count: number;
@@ -1374,6 +1614,10 @@ export interface DeployerAlertStats {
1374
1614
  multiplier: MultiplierStats;
1375
1615
  tiers: Record<string, TierStats>;
1376
1616
  period: string;
1617
+ /** Rows the multiplier/tier aggregates were computed over. */
1618
+ sampled_rows?: number;
1619
+ /** true = the population exceeded the internal row cap; the aggregates are a sample. */
1620
+ truncated?: boolean;
1377
1621
  _rid?: string;
1378
1622
  }
1379
1623
  export interface BestToken {
@@ -1408,6 +1652,8 @@ export interface RecentBond {
1408
1652
  time_to_bond_minutes?: number | null;
1409
1653
  peak_market_cap?: number | null;
1410
1654
  mc_at_bond?: number | null;
1655
+ /** create → migrate within ~90 s (curve filled by a bundle). */
1656
+ instant_bond?: boolean;
1411
1657
  deployers: DeployerSummary;
1412
1658
  }
1413
1659
  export interface RecentBondsResponse {
@@ -1668,12 +1914,23 @@ export interface AlphaWalletResponse {
1668
1914
  export interface AlphaLinkedWallet {
1669
1915
  wallet_address: string;
1670
1916
  shared_tokens: number;
1917
+ /** Average seconds between the two wallets' trades on shared tokens. */
1918
+ avg_time_diff_secs: number;
1919
+ /** Average SOL-size difference between paired trades. */
1920
+ avg_sol_diff: number;
1671
1921
  similarity_score: number;
1672
1922
  }
1923
+ /** `GET /alpha/{wallet}/linked`. */
1673
1924
  export interface AlphaLinkedResponse {
1674
1925
  wallet: string;
1675
- linked_wallets: AlphaLinkedWallet[];
1676
- total: number;
1926
+ /** Most similar co-trading wallets. */
1927
+ linked: AlphaLinkedWallet[];
1928
+ coverage?: TradeCoverage;
1929
+ _rid?: string;
1930
+ /** @deprecated Never sent by the API — the list is `linked`. */
1931
+ linked_wallets?: AlphaLinkedWallet[];
1932
+ /** @deprecated Never sent by the API — use `linked.length`. */
1933
+ total?: number;
1677
1934
  }
1678
1935
  export interface AlphaCapTableBuyer {
1679
1936
  rank: number;
@@ -1732,6 +1989,23 @@ export interface AlphaBuyerQualityResponse {
1732
1989
  cached_at: string;
1733
1990
  /** Returned on all tiers. */
1734
1991
  breakdown?: AlphaBuyerQualityBreakdown;
1992
+ /** Present only when breakdown.dump_cluster_count ≥ 1 and the daily signal-performance snapshot has a bucket for it. */
1993
+ signal_stats?: {
1994
+ dump_cluster_count: {
1995
+ value: number;
1996
+ /** "k>=1" | "k>=3" | "k>=5" */
1997
+ bucket: string;
1998
+ /** "dump" | "runner" */
1999
+ outcome: string;
2000
+ hit_rate: number;
2001
+ base_rate: number;
2002
+ lift: number;
2003
+ sample_n: number;
2004
+ window_days: number;
2005
+ as_of: string;
2006
+ summary: string;
2007
+ };
2008
+ };
1735
2009
  note?: string;
1736
2010
  /** v2.22.4 — trade-coverage disclosure (additive; absent on older cached responses). */
1737
2011
  coverage?: TradeCoverage;
@@ -1843,13 +2117,27 @@ export interface TokenRiskResponse {
1843
2117
  * names the split: trade-derived sub-fields are launchpad-pipeline scoped,
1844
2118
  * on-chain sub-fields are unaffected by trade coverage. */
1845
2119
  coverage?: TradeCoverage;
2120
+ /** Deploy-row lookup status behind `dev`: ok | not_found (no deploy row) | unavailable (lookup failed — `dev` is unknown, not absent). */
2121
+ dev_status?: "ok" | "not_found" | "unavailable";
2122
+ /** Single-mint `/risk` only: present when you passed a POOL address and the answer is for its token mint. */
2123
+ resolved_from?: {
2124
+ address: string;
2125
+ kind: "pool";
2126
+ dex: string;
2127
+ source: string;
2128
+ };
1846
2129
  }
1847
2130
  /** Per-mint error entry in a batch-risk response. Untracked mints come back as
1848
- * `"not_tracked"`; a per-mint scoring failure comes back as `"error"`. Neither
1849
- * fails the batch. */
2131
+ * `"not_tracked"`; a per-mint scoring failure comes back as `"error"`;
2132
+ * `"unavailable"` = a score-critical input could not be read (retry — never a
2133
+ * partial score). None of them fails the batch. */
1850
2134
  export interface TokenRiskBatchError {
1851
2135
  mint: string;
1852
- error: "not_tracked" | "error";
2136
+ error: "not_tracked" | "error" | "unavailable";
2137
+ code?: "risk_inputs_unavailable";
2138
+ /** Which score-critical inputs could not be read (with `error: "unavailable"`). */
2139
+ unavailable_inputs?: string[];
2140
+ retryable?: boolean;
1853
2141
  }
1854
2142
  /** One entry in `TokenRiskBatchResponse.tokens` — either a full risk result
1855
2143
  * (same shape as `alpha.risk(mint)`, plus `as_of`) or a per-mint error stub.
@@ -3336,6 +3624,15 @@ export interface CandlesResponse {
3336
3624
  /** True on ULTRA keys — the net-flow / liquidity fields are populated. */
3337
3625
  net_flow_included: boolean;
3338
3626
  candles: Candle[];
3627
+ /** true = the page budget ran out before `limit` candles or `from` was reached; `covered_from` is then the oldest instant actually searched. */
3628
+ truncated?: boolean;
3629
+ covered_from?: string;
3630
+ /** Oldest instant your plan may read (PRO: 30 days); null = no plan floor. */
3631
+ history_floor?: string | null;
3632
+ /** true = `from` was moved forward to `history_floor`. */
3633
+ history_clamped?: boolean;
3634
+ /** true = the whole requested window is older than the plan floor (200 with no candles). */
3635
+ history_outside_plan?: boolean;
3339
3636
  }
3340
3637
  export type TokenFlowWindow = "1h" | "24h";
3341
3638
  export interface TokenFlowParams {
@@ -3840,6 +4137,12 @@ export interface WalletPnlResponse {
3840
4137
  computed_at?: string;
3841
4138
  /** Only present on cache misses — TTL for this row in wallet_analyses. */
3842
4139
  ttl_seconds?: number;
4140
+ /** Seconds since `computed_at` (source age survives a cache hit). */
4141
+ cache_age_seconds?: number;
4142
+ /** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
4143
+ cache_validation?: "head_checked" | "unverified";
4144
+ /** A cache row existed but the wallet traded since; this response was recomputed. */
4145
+ cache_invalidated?: "new_activity";
3843
4146
  /** v2.22.4 — trade-coverage disclosure; `in_scope: false` means the PnL is
3844
4147
  * built from zero covered trades, not that the wallet never traded. */
3845
4148
  coverage?: TradeCoverage;
@@ -3851,6 +4154,12 @@ export interface WalletPositionsResponse {
3851
4154
  cache_hit?: boolean;
3852
4155
  computed_at?: string | null;
3853
4156
  ttl_seconds?: number | null;
4157
+ /** Seconds since `computed_at` (source age survives a cache hit). */
4158
+ cache_age_seconds?: number;
4159
+ /** Cache hits: head_checked (no newer trade) | unverified (the check failed). */
4160
+ cache_validation?: "head_checked" | "unverified";
4161
+ /** A cache row existed but the wallet traded since; this response was recomputed. */
4162
+ cache_invalidated?: "new_activity";
3854
4163
  /** v2.22.4 — trade-coverage disclosure (additive). */
3855
4164
  coverage?: TradeCoverage;
3856
4165
  _rid?: string;
@@ -4018,14 +4327,64 @@ export interface TokenResponseBody {
4018
4327
  launch_cohort_sol?: number | null;
4019
4328
  /** Count of distinct first-20 buyers (0–20). */
4020
4329
  launch_cohort_size?: number;
4330
+ /** Volume-weighted price over recent trades; null when there are none. */
4331
+ vwap_price_usd?: number | null;
4332
+ vwap_price_sol?: number | null;
4333
+ /** Address of the pool the headline price comes from; null when unknown. */
4334
+ primary_pool_address?: string | null;
4335
+ /** Which writer produced the selected price; null when there is no price. */
4336
+ price_source?: "mc_tracker" | "dex_stream" | null;
4337
+ /** Observation time of the selected price (the price-age anchor — not `last_trade_at`). */
4338
+ price_observed_at?: string | null;
4339
+ /** null = a price exists but its age is unknown (never a false "fresh"). */
4340
+ price_is_stale?: boolean | null;
4341
+ price_age_seconds?: number | null;
4342
+ /** Why `deployer` is null: unknown creator vs a failed lookup. */
4343
+ deployer_identity?: {
4344
+ identity_status: "resolved" | "unknown" | "lookup_failed";
4345
+ history_status: DeployerHistoryStatus | null;
4346
+ address: string | null;
4347
+ source: "deployer_tokens" | "pending_deploys" | null;
4348
+ };
4349
+ /** A token-SUPPLY burn was observed (mint supply decreased) — not LP evidence. null = unknown. */
4350
+ token_supply_burn_detected?: boolean | null;
4351
+ /** LP-burn evidence. Only "verified" means the LP was proven burnt. */
4352
+ lp_burn_status?: LpBurnStatus;
4353
+ }
4354
+ /** LP-burn evidence: only "verified" means proven; "unknown" is the honest default. */
4355
+ export type LpBurnStatus = "verified" | "not_verified" | "unknown";
4356
+ /** Creator-history label on `deployer_identity`. "unranked" tier is NOT "new". */
4357
+ export type DeployerHistoryStatus = "new_in_our_index" | "limited_history" | "reputation_pending" | "established";
4358
+ /** Includes accepted by `client.token.get(mint, { include })`. */
4359
+ export type TokenInclude = "buyer_quality" | "deployer";
4360
+ export interface TokenGetParams {
4361
+ /** Comma-separated or array: `buyer_quality` embeds the `/tokens/{mint}/buyer-quality` body, `deployer` embeds `/deployer-hunter/{deployer}` as `deployer_profile`. One call; each include keeps its own tier gate. */
4362
+ include?: TokenInclude | TokenInclude[] | string;
4021
4363
  }
4022
4364
  export interface TokenResponse {
4023
4365
  token: TokenResponseBody;
4366
+ /** Response assembly time; NOT the observation time of any field. */
4367
+ as_of?: string;
4368
+ /** Present with `include: "buyer_quality"` — the `/tokens/{mint}/buyer-quality` body. */
4369
+ buyer_quality?: AlphaBuyerQualityResponse;
4370
+ /** Present with `include: "deployer"` — the `/deployer-hunter/{wallet}` body. */
4371
+ deployer_profile?: DeployerProfileResponse;
4372
+ /** Per-include errors (a failing include never fails the request). */
4373
+ include_errors?: Record<string, {
4374
+ status: number;
4375
+ error?: string;
4376
+ [k: string]: unknown;
4377
+ }>;
4378
+ /** Includes that were requested. */
4379
+ included?: string[];
4024
4380
  _rid?: string;
4025
4381
  }
4026
4382
  export interface TokenBatchResponse {
4027
4383
  tokens: TokenResponseBody[];
4028
4384
  count: number;
4385
+ as_of?: string;
4386
+ /** Fields that could not be read for this batch (null in every row, never defaults). */
4387
+ degraded_fields?: string[];
4029
4388
  _rid?: string;
4030
4389
  }
4031
4390
  export type TokenListSort = "mc_desc" | "mc_asc" | "last_trade_desc" | "liquidity_desc" | "cumulative_volume_desc" | "mc_change_5m_desc" | "mc_change_1h_desc" | "volume_1h_desc" | "trending";
@@ -4056,6 +4415,10 @@ export interface TokenListParams {
4056
4415
  min_liq_mc_ratio?: number;
4057
4416
  /** Filter by maximum liquidity_to_mc_ratio. */
4058
4417
  max_liq_mc_ratio?: number;
4418
+ /** Token-SUPPLY burn observed (what `lp_burned` used to filter on). */
4419
+ supply_burn?: boolean;
4420
+ /** @deprecated Matches VERIFIED LP evidence only (nothing today) — use `lp_burn_status` per token or `supply_burn`. Sending it adds a `deprecations` entry. */
4421
+ lp_burned?: boolean;
4059
4422
  /** Filter by deployer tier. */
4060
4423
  deployer_tier?: "elite" | "good" | "moderate" | "rising" | "cold" | "unranked";
4061
4424
  }
@@ -4080,6 +4443,20 @@ export interface TokenSummary {
4080
4443
  liquidity_to_mc_ratio?: number | null;
4081
4444
  /** Deployer Hunter tier for this token's deployer wallet. */
4082
4445
  deployer_tier?: string | null;
4446
+ launchpad?: string | null;
4447
+ /** VERIFIED LP evidence only; null = unknown (the honest answer for nearly every token today). */
4448
+ lp_burned?: boolean | null;
4449
+ lp_burn_status?: LpBurnStatus;
4450
+ /** Token-SUPPLY burn observed (not LP evidence); null = unknown. */
4451
+ token_supply_burn_detected?: boolean | null;
4452
+ }
4453
+ /** Disclosure for a deprecated `/tokens` parameter that was sent. */
4454
+ export interface TokensDeprecation {
4455
+ param: string;
4456
+ status: "deprecated";
4457
+ /** Exactly what the parameter matches today. */
4458
+ matches: string;
4459
+ replacement: string;
4083
4460
  }
4084
4461
  export interface TokenListResponse {
4085
4462
  tokens: TokenSummary[];
@@ -4092,6 +4469,8 @@ export interface TokenListResponse {
4092
4469
  post_filtered: boolean;
4093
4470
  };
4094
4471
  filters: Record<string, unknown>;
4472
+ /** Present only when a deprecated parameter (today: `lp_burned`) was sent. */
4473
+ deprecations?: TokensDeprecation[];
4095
4474
  _rid?: string;
4096
4475
  }
4097
4476
  export type AlmostBondedSort = "velocity_desc" | "progress_desc" | "eta_asc";
@@ -4234,25 +4613,38 @@ export interface WatchlistResponse {
4234
4613
  _rid?: string;
4235
4614
  }
4236
4615
  export interface WalletTrackerEvent {
4237
- id: string;
4238
4616
  wallet_address: string;
4239
4617
  label: string | null;
4240
4618
  event_type: WalletTrackerEventType;
4241
- action: WalletTrackerAction;
4242
- /** Solana block time (Unix seconds). */
4619
+ /** `buy` / `sell` on swaps, `null` on transfers. */
4620
+ action: WalletTrackerAction | null;
4621
+ /** Unix seconds on the tracker's INGEST clock, not chain time. Use `slot` for chain order. */
4243
4622
  block_time: number;
4244
- /** Block time as ISO string. */
4245
- block_time_iso: string;
4623
+ /** On-chain slot; null on rows written before slot tracking existed. */
4624
+ slot: number | null;
4625
+ /** true when the row arrived through a replay (reconnect/restart recovery), not live delivery. */
4626
+ replayed: boolean;
4627
+ /** ISO 8601 form of `block_time` (ingest time). */
4628
+ ingested_at: string;
4629
+ /** Alias of `ingested_at`, kept for older consumers. It never meant chain time. */
4630
+ timestamp: string;
4246
4631
  token_mint: string | null;
4247
4632
  token_symbol: string | null;
4248
4633
  token_name: string | null;
4249
- sol_amount: number;
4634
+ sol_amount: number | null;
4250
4635
  token_amount: number | null;
4251
- price_per_token_sol: number | null;
4252
- counterparty: string | null;
4636
+ /** Present only when a counterparty was matched. */
4637
+ counterparty?: string | null;
4253
4638
  /** Transaction signature — BASIC tier: null. */
4254
4639
  tx_signature: string | null;
4255
- program: string | null;
4640
+ /** @deprecated Never sent by the API. */
4641
+ id?: string;
4642
+ /** @deprecated Never sent by the API — use `ingested_at`. */
4643
+ block_time_iso?: string;
4644
+ /** @deprecated Never sent by the API. */
4645
+ price_per_token_sol?: number | null;
4646
+ /** @deprecated Never sent by the API. */
4647
+ program?: string | null;
4256
4648
  }
4257
4649
  export interface WalletTrackerTradesParams {
4258
4650
  /** Filter by specific wallet address. */
@@ -4263,12 +4655,23 @@ export interface WalletTrackerTradesParams {
4263
4655
  event_type?: WalletTrackerEventType;
4264
4656
  /** Max results (1–200). Default: 50. */
4265
4657
  limit?: number;
4266
- /** Cursor for pagination: block_time of the last item from the previous page. */
4658
+ /** Cursor for pagination: block_time of the last item from the previous page (`next_cursor`). */
4267
4659
  before?: number;
4660
+ /** Slot cursor (`next_cursor_slot`) — used with `order: "slot"`. */
4661
+ before_slot?: number;
4662
+ /** Page ordering column. */
4663
+ order?: "slot" | "block_time";
4268
4664
  }
4269
4665
  export interface WalletTrackerTradesResponse {
4270
4666
  events: WalletTrackerEvent[];
4271
4667
  count: number;
4668
+ /** Which column this page was ordered by. */
4669
+ ordered_by: "slot" | "block_time";
4670
+ /** `block_time` cursor for the next page (`before`); null on the last page. */
4671
+ next_cursor: number | null;
4672
+ /** Slot cursor for the next page (`before_slot`); null on the last page or on a page of pre-slot rows. */
4673
+ next_cursor_slot: number | null;
4674
+ _rid?: string;
4272
4675
  }
4273
4676
  export interface WalletTrackerWalletStats {
4274
4677
  wallet_address: string;
@@ -4335,6 +4738,31 @@ export interface StreamToken {
4335
4738
  /** DEX trade stream URL — only present for Ultra tier subscribers */
4336
4739
  dex_ws_url?: string | null;
4337
4740
  usage: string;
4741
+ subscribe_example?: {
4742
+ type: "subscribe";
4743
+ channels: string[];
4744
+ };
4745
+ /** The full registry of subscribable channel names. */
4746
+ channels?: string[];
4747
+ /** token:prices requires filters.mints (1..mint_cap). */
4748
+ token_prices?: {
4749
+ subscribe_example: Record<string, unknown>;
4750
+ mint_cap: number | null;
4751
+ note: string;
4752
+ };
4753
+ /** rhc:token_prices requires filters.addresses (1..address_cap, per connection across named subscriptions). */
4754
+ rhc_token_prices?: {
4755
+ subscribe_example: Record<string, unknown>;
4756
+ address_cap: number | null;
4757
+ coalesce_ms: number;
4758
+ note: string;
4759
+ };
4760
+ /** Named subscriptions: several channel + filter sets on one socket. */
4761
+ named_subscriptions?: {
4762
+ subscribe_example: Record<string, unknown>;
4763
+ max_per_connection: number | null;
4764
+ note: string;
4765
+ };
4338
4766
  _rid?: string;
4339
4767
  }
4340
4768
  /** A live WebSocket session for your API key (as returned by
@@ -4468,6 +4896,370 @@ export interface WebhookTestResponse {
4468
4896
  error?: string;
4469
4897
  _rid?: string;
4470
4898
  }
4899
+ /** `client.kol.wallets()` params — `GET /kol/wallets`. */
4900
+ export interface KolWalletsParams {
4901
+ /** 1–500, default 200. */
4902
+ limit?: number;
4903
+ /** 0–5000, default 0. */
4904
+ offset?: number;
4905
+ /** Default "true". Inactive wallets are kept for history but produce no new trades. */
4906
+ active?: "true" | "false" | "all" | boolean;
4907
+ /** Case-insensitive substring match on the KOL name (≤ 40 chars). */
4908
+ q?: string;
4909
+ /** Exact strategy_tag filter. */
4910
+ strategy?: string;
4911
+ }
4912
+ /** One tracked KOL on `GET /kol/wallets` (roster only — performance lives in `/kol/leaderboard`). */
4913
+ export interface KolRosterWallet {
4914
+ wallet_address: string;
4915
+ name: string | null;
4916
+ twitter_url: string | null;
4917
+ avatar_url: string | null;
4918
+ strategy_tag: string | null;
4919
+ twitter_followers: number | null;
4920
+ /** MadeOnSol users following this KOL. */
4921
+ follow_count: number;
4922
+ is_active: boolean;
4923
+ tracked_since: string | null;
4924
+ }
4925
+ export interface KolWalletsResponse {
4926
+ wallets: KolRosterWallet[];
4927
+ count: number;
4928
+ /** Total matching the filters (for paging). */
4929
+ total: number;
4930
+ limit: number;
4931
+ offset: number;
4932
+ has_more: boolean;
4933
+ /** Echo of the applied filters. */
4934
+ filters?: {
4935
+ active: string;
4936
+ q: string | null;
4937
+ strategy: string | null;
4938
+ };
4939
+ note?: string;
4940
+ _rid?: string;
4941
+ }
4942
+ /** `client.token.search()` params — `GET /tokens/search`. */
4943
+ export interface TokenSearchParams {
4944
+ /** Ticker or name fragment (1–64 chars). 1 char = exact symbol only; 2+ symbol prefix; 3+ name prefix; 4+ fuzzy. */
4945
+ q: string;
4946
+ /** 1–50, default 10. */
4947
+ limit?: number;
4948
+ }
4949
+ export interface TokenSearchResult {
4950
+ mint: string;
4951
+ symbol: string | null;
4952
+ name: string | null;
4953
+ match: "symbol_exact" | "symbol_prefix" | "name_prefix" | "fuzzy";
4954
+ market_cap_usd: number | null;
4955
+ liquidity_usd: number | null;
4956
+ primary_dex: string | null;
4957
+ last_trade_at: string | null;
4958
+ image_url?: string | null;
4959
+ twitter?: string | null;
4960
+ website?: string | null;
4961
+ }
4962
+ export interface TokenSearchResponse {
4963
+ q: string;
4964
+ count: number;
4965
+ results: TokenSearchResult[];
4966
+ /** Present when q is a blue-chip ticker (results are namesakes) or when nothing matched. */
4967
+ note?: string;
4968
+ _rid?: string;
4969
+ }
4970
+ /** `client.manifests()` params — `GET /manifests`. */
4971
+ export interface ManifestsParams {
4972
+ /** One dataset's history (newest first), e.g. "token_trades", "kol_trades". Pattern ^[a-z0-9_]{1,64}$. */
4973
+ dataset?: string;
4974
+ /** History depth when `dataset` is set: 1–365, default 30. */
4975
+ limit?: number;
4976
+ }
4977
+ /** One nightly as-of manifest for a dataset. Cite `fingerprint` to name the exact dataset state. */
4978
+ export interface DatasetManifest {
4979
+ dataset: string;
4980
+ /** Night the manifest was measured on the streaming replica. */
4981
+ data_as_of: string;
4982
+ produced_at: string;
4983
+ producer: string;
4984
+ ts_column: string;
4985
+ rows_24h: number;
4986
+ min_ts: string | null;
4987
+ max_ts: string | null;
4988
+ /** Planner estimate (partitions summed), not an exact count. */
4989
+ row_count_estimate: number;
4990
+ /** md5 of the column:type list — a change means the shape of the data changed. */
4991
+ schema_hash: string;
4992
+ /** md5(dataset|max_ts|rows_24h|estimate). */
4993
+ fingerprint: string;
4994
+ }
4995
+ export interface ManifestsResponse {
4996
+ manifests: DatasetManifest[];
4997
+ count: number;
4998
+ dataset: string | null;
4999
+ methodology_version: string;
5000
+ note: string;
5001
+ _rid?: string;
5002
+ }
5003
+ /** Signal names served by the Signal Scorecard. */
5004
+ export type SignalName = "dump_cluster_count" | "runner_rate" | "recycled_early_buyer_count" | "coordination_count" | "scout_first_touch";
5005
+ /** `GET /signals` — the Signal Scorecard catalog. */
5006
+ export interface SignalsCatalogResponse {
5007
+ name: string;
5008
+ description: string;
5009
+ signals: {
5010
+ name: SignalName | string;
5011
+ methodology: string;
5012
+ performance_endpoint: string;
5013
+ }[];
5014
+ docs: string;
5015
+ _rid?: string;
5016
+ }
5017
+ export interface SignalPerformanceBucket {
5018
+ bucket: string;
5019
+ hit_rate: number | null;
5020
+ base_rate: number | null;
5021
+ lift: number | null;
5022
+ sample_n: number | null;
5023
+ }
5024
+ /** `GET /signals/{name}/performance`. Before the first computation the body is only `{ signal, buckets: [], note }`. */
5025
+ export interface SignalPerformanceResponse {
5026
+ signal: string;
5027
+ buckets: SignalPerformanceBucket[];
5028
+ /** Present (with empty buckets) only when no performance data has been computed yet. */
5029
+ note?: string | null;
5030
+ metric_type?: string;
5031
+ outcome?: string;
5032
+ window_days?: number;
5033
+ base_rate?: number | null;
5034
+ test_from?: string | null;
5035
+ test_to?: string | null;
5036
+ as_of?: string;
5037
+ methodology?: string;
5038
+ /** Only with `history: true` — one entry per snapshot, newest first, ≤ 90. */
5039
+ history?: {
5040
+ as_of: string;
5041
+ buckets: {
5042
+ bucket: string;
5043
+ hit_rate: number | null;
5044
+ lift: number | null;
5045
+ sample_n: number | null;
5046
+ }[];
5047
+ }[] | null;
5048
+ _rid?: string;
5049
+ }
5050
+ /** `client.wallet.flags()` params — `GET /wallet/{address}/flags`. */
5051
+ export interface WalletFlagsParams {
5052
+ /** ISO-8601 with offset. Default: now. */
5053
+ as_of?: string;
5054
+ /** Include the change series (newest first, ≤ 200 rows). */
5055
+ history?: boolean;
5056
+ }
5057
+ export type WalletFlagSource = "deployer" | "alpha" | "dump_cluster" | "kol" | "sniper" | "bundler";
5058
+ /** A source's latest snapshot at or before `as_of`, plus `snapshot_at` / `active` / `carried`. Other keys depend on the source. */
5059
+ export interface WalletFlagSnapshot {
5060
+ snapshot_at: string;
5061
+ /** false = a membership source whose latest row says the wallet dropped out. */
5062
+ active: boolean;
5063
+ /** true = recorded before `as_of` and unchanged by then. */
5064
+ carried: boolean;
5065
+ [key: string]: unknown;
5066
+ }
5067
+ export interface WalletFlagsResponse {
5068
+ wallet: string;
5069
+ as_of: string;
5070
+ /** Sources with a snapshot at or before `as_of` whose latest state is still active. */
5071
+ flagged: WalletFlagSource[];
5072
+ /** One key per source; null = no snapshot at or before `as_of` (we had nothing on the wallet then). */
5073
+ sources: Record<WalletFlagSource, WalletFlagSnapshot | null>;
5074
+ /** Only with `history: true`. */
5075
+ history?: {
5076
+ source: string;
5077
+ flags: Record<string, unknown>;
5078
+ snapshot_at: string;
5079
+ }[];
5080
+ /** Funding evidence block, when that feature is on for your tier. Typed in full by `client.wallet.funding()`. */
5081
+ funding?: Record<string, unknown>;
5082
+ note: string;
5083
+ _rid?: string;
5084
+ }
5085
+ /** `client.wallet.batchTrades()` params — `POST /wallet/batch/trades`. */
5086
+ export interface WalletBatchTradesParams {
5087
+ /** 1–50 base58 wallet addresses. */
5088
+ wallets: string[];
5089
+ /** Unix seconds; only trades strictly after this. Default: 90 days ago (cannot reach further back). */
5090
+ since?: number;
5091
+ /** 1–100, default 20. */
5092
+ limit_per_wallet?: number;
5093
+ action?: "buy" | "sell";
5094
+ }
5095
+ export interface WalletBatchTrade {
5096
+ tx_signature: string;
5097
+ token_mint: string;
5098
+ action: "buy" | "sell";
5099
+ sol_amount: number;
5100
+ token_amount: number;
5101
+ /** This trade's executed price (sol_amount / token_amount). */
5102
+ price_sol: number | null;
5103
+ price_usd: number | null;
5104
+ /** Canonical pool price sampled near this trade's slot. */
5105
+ market_price_sol: number | null;
5106
+ market_price_usd: number | null;
5107
+ block_time: number;
5108
+ traded_at: string;
5109
+ }
5110
+ export interface WalletBatchTradesResponse {
5111
+ wallets: {
5112
+ wallet: string;
5113
+ count: number;
5114
+ trades: WalletBatchTrade[];
5115
+ }[];
5116
+ since: number;
5117
+ /** Newest block_time seen — pass back as `since` on the next poll. */
5118
+ next_since: number;
5119
+ limit_per_wallet: number;
5120
+ coverage: {
5121
+ history_start_days: number;
5122
+ scope: string;
5123
+ note: string;
5124
+ };
5125
+ _rid?: string;
5126
+ }
5127
+ /** One wallet on `POST /wallet-list/score`. */
5128
+ export interface WalletListScoreEntry {
5129
+ address: string;
5130
+ status: "scored" | "no_trades" | "not_computed";
5131
+ /** 0–100; null when there are no closed positions to score. */
5132
+ score: number | null;
5133
+ /** Same shape as `client.wallet.pnl()`'s `summary`; null unless status is "scored". */
5134
+ pnl: WalletPnlSummary | null;
5135
+ reputation?: {
5136
+ is_sniper: boolean;
5137
+ is_bundler: boolean;
5138
+ is_dumper: boolean;
5139
+ is_kol: boolean;
5140
+ kol_name: string | null;
5141
+ bot_confidence: BotConfidence | null;
5142
+ };
5143
+ cache_hit?: boolean | null;
5144
+ computed_at?: string | null;
5145
+ /** Seconds since computed_at. */
5146
+ cache_age_seconds?: number | null;
5147
+ /** Present only when status is "not_computed". */
5148
+ message?: string;
5149
+ }
5150
+ export interface WalletListScoreResponse {
5151
+ wallets: WalletListScoreEntry[];
5152
+ count: number;
5153
+ scored: number;
5154
+ cached: number;
5155
+ computed_now: number;
5156
+ no_trades: number;
5157
+ not_computed: number;
5158
+ max_wallets: number;
5159
+ max_live_compute: number;
5160
+ score_methodology: string;
5161
+ as_of: string;
5162
+ _rid?: string;
5163
+ }
5164
+ /** `client.wallet.funding()` params — `GET /wallet/{address}/funding`. */
5165
+ export interface WalletFundingParams {
5166
+ /** Shared funders per page: 1–20, default 10. */
5167
+ limit?: number;
5168
+ /** 0–100, default 0. */
5169
+ offset?: number;
5170
+ }
5171
+ /** Aggregated transfers of one asset from a funder to a wallet. Amounts are raw base-unit STRINGS (u64/u256-safe). */
5172
+ export interface FundingTransferLink {
5173
+ asset: string;
5174
+ symbol: string | null;
5175
+ decimals: number | null;
5176
+ /** Raw base units, as a decimal string. */
5177
+ amount_raw: string;
5178
+ /** Human amount as a decimal string; null when decimals are unknown. */
5179
+ amount: string | null;
5180
+ transfer_count: number;
5181
+ first_seen: string;
5182
+ last_seen: string;
5183
+ transactions: {
5184
+ tx: string;
5185
+ explorer_url: string;
5186
+ }[];
5187
+ }
5188
+ /** An address that funded this wallet AND other tracked wallets. */
5189
+ export interface SharedFunder {
5190
+ funder: string;
5191
+ funder_explorer_url: string;
5192
+ funder_label: {
5193
+ label: string;
5194
+ category: string;
5195
+ verified: boolean;
5196
+ } | null;
5197
+ /** Known exchange/service: common funding, not a connection signal. */
5198
+ service_funder: boolean;
5199
+ to_this_wallet: FundingTransferLink[];
5200
+ connected_wallets: {
5201
+ address: string;
5202
+ explorer_url: string;
5203
+ tracked_as: string[];
5204
+ transfers: FundingTransferLink[];
5205
+ }[];
5206
+ }
5207
+ export type FundingStatus = "ok" | "partial_coverage" | "not_tracked" | "collection_disabled" | "collection_stale" | "not_started";
5208
+ /**
5209
+ * `GET /wallet/{address}/funding` (PRO+). Evidence of a funding connection — not
5210
+ * proof of common ownership. Forward-looking coverage from monitoring start;
5211
+ * SOL-only on Solana. A 503 `feature_disabled` / `funding_data_unavailable` is
5212
+ * never an empty result.
5213
+ */
5214
+ export interface WalletFundingResponse {
5215
+ chain: string;
5216
+ /** CAIP-2 chain id, e.g. "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp". */
5217
+ chain_id: string;
5218
+ native_asset: string;
5219
+ address: string;
5220
+ status: FundingStatus;
5221
+ summary: string;
5222
+ shared_funders: SharedFunder[];
5223
+ pagination: {
5224
+ limit: number;
5225
+ offset: number;
5226
+ total: number;
5227
+ has_more: boolean;
5228
+ };
5229
+ /** Collection state needed to read an empty answer (monitoring start, heartbeat, tracked intervals, known gaps…). */
5230
+ coverage: {
5231
+ collection_enabled: boolean;
5232
+ mode: string;
5233
+ heartbeat_at: string | null;
5234
+ collector_current: boolean;
5235
+ monitoring_started_at: string | null;
5236
+ last_committed_position: string | null;
5237
+ last_committed_at: string | null;
5238
+ tracked_intervals: {
5239
+ source: string;
5240
+ tracked_since: string;
5241
+ tracked_until: string | null;
5242
+ }[];
5243
+ known_gaps: Record<string, unknown>[];
5244
+ supported_transfer_types: string[];
5245
+ unsupported_transfer_types: string[];
5246
+ recovery: string | null;
5247
+ history: string;
5248
+ [key: string]: unknown;
5249
+ };
5250
+ /**
5251
+ * "Where was this wallet funded from?" — direct funding facts (PRO). Absent
5252
+ * when that read degraded. Loosely typed: its fact objects carry a
5253
+ * `relationships` block (cross-wallet counts) only for ULTRA+ keys; it is
5254
+ * redacted below ULTRA.
5255
+ */
5256
+ direct_funding?: {
5257
+ observed: boolean;
5258
+ [key: string]: unknown;
5259
+ };
5260
+ disclaimer: string;
5261
+ _rid?: string;
5262
+ }
4471
5263
  export interface MadeOnSolConfig {
4472
5264
  /**
4473
5265
  * MadeOnSol API key (starts with `msk_`).
@@ -4495,6 +5287,12 @@ declare class KolClient {
4495
5287
  * @param wallet Solana wallet address.
4496
5288
  * @param params Optional: include "pnl_by_token" for per-token breakdown.
4497
5289
  */
5290
+ /**
5291
+ * Tracked KOL roster (`GET /kol/wallets`): address, name, X handle, strategy
5292
+ * tag, follower counts, tracked-since. Roster only; performance is in
5293
+ * `leaderboard()` / `wallet()`. Any key.
5294
+ */
5295
+ wallets(params?: KolWalletsParams): Promise<KolWalletsResponse>;
4498
5296
  wallet(wallet: string, params?: KolWalletParams): Promise<KolWalletProfile>;
4499
5297
  /**
4500
5298
  * Detect coordinated buying activity across KOL wallets.
@@ -4571,12 +5369,12 @@ declare class KolClient {
4571
5369
  * v1.9 — Scout leaderboard: top KOLs ranked by scout score, first-touch frequency,
4572
5370
  * and swarm attraction rate. ULTRA only.
4573
5371
  */
4574
- scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<unknown>;
5372
+ scoutLeaderboard(params?: ScoutLeaderboardParams): Promise<ScoutLeaderboardResponse>;
4575
5373
  /**
4576
5374
  * v1.9 — Coordination history: past coordination alert fires with token, score, KOL count.
4577
5375
  * ULTRA only.
4578
5376
  */
4579
- coordinationHistory(params?: CoordinationHistoryParams): Promise<unknown>;
5377
+ coordinationHistory(params?: CoordinationHistoryParams): Promise<CoordinationHistoryResponse>;
4580
5378
  }
4581
5379
  declare class AlphaClient {
4582
5380
  private readonly _fetch;
@@ -4732,7 +5530,14 @@ declare class TokenClient {
4732
5530
  * **ULTRA** adds individual KOL wallet addresses in kol_activity.top_buyers[].
4733
5531
  * @param mint Token mint address (base58).
4734
5532
  */
4735
- get(mint: string): Promise<TokenResponse>;
5533
+ get(mint: string, params?: TokenGetParams): Promise<TokenResponse>;
5534
+ /**
5535
+ * Resolve a ticker or name to candidate mints (`GET /tokens/search`), ranked
5536
+ * exact ticker, symbol prefix, name prefix, fuzzy — by liquidity inside each
5537
+ * tier. Memecoin/launchpad universe only: `q: "SOL"` returns tokens NAMED SOL
5538
+ * and `note` says so. Any key, including Free.
5539
+ */
5540
+ search(params: TokenSearchParams): Promise<TokenSearchResponse>;
4736
5541
  /**
4737
5542
  * Batch lookup of up to 50 mints. Returns the same per-mint shape as `get()`
4738
5543
  * in a single round-trip — DB queries batched with `IN(...)`, dex-stream +
@@ -5130,6 +5935,9 @@ export interface SniperDeploy {
5130
5935
  detected_at: string;
5131
5936
  detection_region: string;
5132
5937
  detection_confirmed: boolean;
5938
+ /** Deployer attribution cross-checked against the confirmed create tx (every 15 min). Distinct from `detection_confirmed` (transport-level). */
5939
+ attribution_status?: "unverified" | "confirmed" | "corrected" | null;
5940
+ attribution_checked_at?: string | null;
5133
5941
  deployer_tier: string | null;
5134
5942
  deployer_bond_rate: number | null;
5135
5943
  deployer_total_bonded: number | null;
@@ -5337,6 +6145,34 @@ declare class WalletClient {
5337
6145
  * ```
5338
6146
  */
5339
6147
  trades(address: string, params?: WalletTradesParams): Promise<WalletTradesResponse>;
6148
+ /**
6149
+ * Point-in-time wallet flags (`GET /wallet/{address}/flags`): for every flag
6150
+ * source (deployer, alpha, dump_cluster, kol, sniper, bundler) the latest
6151
+ * write-on-change snapshot at or before `as_of` (default now). A null source
6152
+ * means we had nothing on the wallet then. Snapshots exist from 2026-08-28.
6153
+ * **PRO+**.
6154
+ */
6155
+ flags(address: string, params?: WalletFlagsParams): Promise<WalletFlagsResponse>;
6156
+ /**
6157
+ * Shared-funder evidence (`GET /wallet/{address}/funding`): addresses that sent
6158
+ * a qualifying SOL transfer to this wallet AND to other tracked wallets, with
6159
+ * the supporting transactions, plus `direct_funding`. Amounts are raw strings.
6160
+ * **PRO+**; `relationships` counts inside `direct_funding` are ULTRA+.
6161
+ */
6162
+ funding(address: string, params?: WalletFundingParams): Promise<WalletFundingResponse>;
6163
+ /**
6164
+ * Recent trades for up to 50 wallets in one call (`POST /wallet/batch/trades`),
6165
+ * the batch twin of `trades()`: newest first, 90-day window. Feed `next_since`
6166
+ * back as `since` to poll. One quota unit. **PRO+**.
6167
+ */
6168
+ batchTrades(params: WalletBatchTradesParams): Promise<WalletBatchTradesResponse>;
6169
+ /**
6170
+ * Score a customer-supplied list of up to 200 wallets on FIFO trading
6171
+ * performance (`POST /wallet-list/score`). Only the first 25 UNCACHED wallets
6172
+ * are computed per call; the rest come back `status: "not_computed"`, so call
6173
+ * again. **Enterprise tier only.**
6174
+ */
6175
+ scoreList(wallets: string[]): Promise<WalletListScoreResponse>;
5340
6176
  }
5341
6177
  declare class CoordinationAlertsClient {
5342
6178
  private readonly _get;
@@ -5695,17 +6531,29 @@ export declare class MadeOnSol {
5695
6531
  */
5696
6532
  me(): Promise<MeResponse>;
5697
6533
  /**
5698
- * Performance stats for a named signal — hit rate, precision, sample count,
5699
- * and lookback window. Available on all tiers.
6534
+ * Signal Scorecard for one signal (`GET /signals/{name}/performance`):
6535
+ * out-of-sample per-bucket hit rate, base rate and lift. `history: true` adds
6536
+ * the per-snapshot series. Available on all tiers.
5700
6537
  *
5701
- * @param name Signal name (e.g. "kol_coordination", "first_touch_scout", "deployer_elite").
6538
+ * @param name Signal name — see `listSignals()` (e.g. "dump_cluster_count", "scout_first_touch").
5702
6539
  * @example
5703
6540
  * ```ts
5704
- * const perf = await client.getSignalPerformance("kol_coordination");
5705
- * console.log(perf.precision, perf.hit_rate);
6541
+ * const perf = await client.getSignalPerformance("dump_cluster_count");
6542
+ * for (const b of perf.buckets) console.log(b.bucket, b.hit_rate, b.lift);
5706
6543
  * ```
5707
6544
  */
5708
- getSignalPerformance(name: string): Promise<unknown>;
6545
+ getSignalPerformance(name: SignalName | string, params?: {
6546
+ history?: boolean;
6547
+ }): Promise<SignalPerformanceResponse>;
6548
+ /** Signal Scorecard catalog (`GET /signals`): every signal, its methodology and its performance endpoint. Any key. */
6549
+ listSignals(): Promise<SignalsCatalogResponse>;
6550
+ /**
6551
+ * As-of dataset manifests (`GET /manifests`): one nightly manifest per dataset
6552
+ * (rows in the last 24 h, min/max event time, planner row estimate,
6553
+ * `schema_hash`, `fingerprint`). Cite the fingerprint to name the exact data
6554
+ * state a report used; `dataset` walks one dataset's history. Any key.
6555
+ */
6556
+ manifests(params?: ManifestsParams): Promise<ManifestsResponse>;
5709
6557
  private _request;
5710
6558
  private _requestWithBody;
5711
6559
  private _handleResponse;