File size: 8,226 Bytes
e23bc73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e0d3b77
e23bc73
 
 
 
 
e0d3b77
e23bc73
 
e0d3b77
 
 
 
 
e23bc73
 
 
 
 
 
 
 
 
 
 
 
e0d3b77
 
 
 
e23bc73
e0d3b77
 
 
 
 
 
 
 
 
 
 
e23bc73
 
 
 
 
e0d3b77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e23bc73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e0d3b77
e23bc73
e0d3b77
e23bc73
e0d3b77
 
e23bc73
e0d3b77
e23bc73
e0d3b77
e23bc73
e0d3b77
e23bc73
e0d3b77
 
 
e23bc73
e0d3b77
 
 
e23bc73
e0d3b77
e23bc73
e0d3b77
 
 
 
e23bc73
 
 
 
 
 
 
e0d3b77
e23bc73
 
 
e0d3b77
 
 
 
 
 
 
e23bc73
e0d3b77
e23bc73
 
 
e0d3b77
 
 
 
 
 
 
e23bc73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
---
pretty_name: Solana Program Types
license: other
license_name: cc-by-4.0-annotations
language:
- en
task_categories:
- text-classification
size_categories:
- 10K<n<100K
tags:
- solana
- blockchain
- smart-contracts
- bytecode
- program-classification
- launchpad
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*.parquet
  - split: validation
    path: data/validation-*.parquet
  - split: test
    path: data/test-*.parquet
---

# Solana Program Types

**22,743 Solana mainnet programs** (BPF upgradeable loader), one row per program, each labelled with a two-level
type (`domain` / `type`, 34 types) and capability flags. The inputs are static features extracted from each program's
deployed bytecode (instruction names, source paths, crates, embedded program IDs, strings) plus sampled on-chain
behaviour.

The main use is **recognising program types from deploy-time bytecode**, especially **token launchpads**, including
launchpads deployed after a model was trained. The other 33 types (arbitrage/MEV bots, bridges, vaults, AMMs, games,
escrow, …) are labelled with the same rubric.

- **v1.3** (2026-10-21): about twice v1.2. It adds a third collection wave (11.5k programs still deployed on
  mainnet), so it now covers nearly every upgradeable program active in the last 90 days at collection time. 510
  launchpads in 481 code groups.
- **v1.2** (2026-10-15): v1.1 plus 85 programs caught by a live shadow monitor.
- **Labels are agent-made (silver).** See "Label sources" and "Limitations".

## Quick start

```python
from datasets import load_dataset
ds = load_dataset("ethduke/solana-program-types")
row = ds["train"][0]
print(row["type"], row["domain"], row["card"][:500])
```

## Label sources

Deterministic rules over on-chain behaviour vote first. Then a cheap LLM annotator labels every card, and Claude
Sonnet adjudicates launchpads, rule-vs-annotator disagreements, launch-word safety-net cases and (in waves 1–2 and
part of wave 3) bot and token-issuance positives. Owner revisions override everything (`is_gold`). `label_source`
and `annotators` record the provenance of every row.

| final label from | rows | rows with a known type |
|---|---|---|
| GLM-5.3-flash annotator (wave 3) | 9,750 | 7,105 |
| GLM-5.3 annotator (wave 2) | 6,561 | 4,251 |
| Claude Sonnet 5.5 adjudicator | 5,251 | 4,700 |
| Claude Haiku 5.5 annotator (wave 1) | 1,027 | 833 |
| Claude Sonnet 5.5 annotator (live rounds) | 85 | 68 |
| registry | 43 | 43 |
| owner | 26 | 26 |

**Every launchpad label** comes from Sonnet, the registry or the owner, never from a cheap annotator alone.

## Types

| type | rows |
|---|---|
| unknown | 5717 |
| other | 1582 |
| arbitrage_mev | 1319 |
| bridge | 1263 |
| launch_bot | 1089 |
| yield_vault | 1079 |
| payments_fees | 895 |
| escrow | 884 |
| generic_bot | 863 |
| stake_pool | 852 |
| game | 756 |
| nft_mint | 635 |
| aggregator | 529 |
| ico_presale | 528 |
| launchpad | 510 |
| vesting_locker | 490 |
| prediction_market | 454 |
| airdrop_claim | 437 |
| amm | 430 |
| nft_marketplace | 296 |
| lending_market | 296 |
| governance_dao | 254 |
| oracle | 254 |
| token_factory | 234 |
| copy_volume_bot | 183 |
| multisig_wallet | 181 |
| orderbook | 154 |
| perps | 135 |
| naming_identity | 128 |
| dca_limit_order | 88 |
| social | 75 |
| cdp_stablecoin | 63 |
| options | 52 |
| liquid_staking | 38 |

## Splits

- `split`: 80/10/10 by `clone_group`; programs with the same binary or the same instruction-name set never cross splits.
- `time_split`: newest 15% of deploy slots are `test`, to evaluate on new deployments.

## Columns

- Labels: `domain`, `type`, `capabilities`, `confidence`, `label_source`, `is_gold`, `owner_decision`, `rule_type`, `rule_votes`, `annotators`, `annotator_types`, `annotation_evidence`.
- Static (from the ELF bytes, no execution): `ix_names`, `app_paths`, `crates`, `messages`, `embedded_refs`, `embedded_ref_categories`, `launch_word_hits`, `top_words`, `framework`, `n_strings`.
- Behaviour (sampled finalized transactions): `b_*` columns; maps are JSON strings.
- Operator pattern: `t_*` columns (fee payers, AMMs per tx, launchpad/oracle CPIs, decimals of created mints).
- `card`: the text the annotators saw. Strings inside it are untrusted data from binaries.
- Bytecode is not included; fetch it by `binary_sha256` / `program_id` from mainnet.

## Benchmarks (static, deploy-time inputs only)

Two model families on identical rows:

- **Trees:** gradient-boosted trees over 3,000 bytecode tokens.
- **8B:** Qwen3-8B with a LoRA adapter (r = 16, one epoch). It reads the static card and answers with one code
  letter per type; the next-token probabilities over the 34 letters give the type distribution, with one temperature
  for calibration. Model: [ethduke/solana-program-types-qwen3-8b-lora](https://huggingface.co/ethduke/solana-program-types-qwen3-8b-lora).

### v1.3: newest 15% of deployments, never trained on (2,463 programs, 109 launchpads)

| model | launchpad PR-AUC | recall @ precision ≥ 0.9 | P / R at 0.5 | type accuracy | type macro-F1 |
|---|---|---|---|---|---|
| gradient-boosted trees | 0.695 | 0.22 | 0.71 / 0.51 | 0.527 | 0.434 |
| Qwen3-8B LoRA | **0.879** | **0.69** | 0.79 / **0.84** | 0.653 | **0.649** |
| average of both | 0.871 | 0.61 | **0.86** / 0.74 | **0.662** | 0.646 |

Paired bootstrap of the PR-AUC gap (8B − trees): **+0.18**, 95% CI [+0.11, +0.25]. Per-type F1 improves most for
bridges, stake pools, oracles, perps, payments and aggregators. Bot sub-types (generic, copy-volume and launch bots)
stay hard from bytecode alone.

### Earlier results

- **v1.1, newest deployments (53 launchpads):** PR-AUC 0.873 vs 0.763 for the trees (+0.11, CI [+0.01, +0.21]).
- **v1.1, unseen launchpad families** (43 families held out entirely): 0.911 vs 0.886, a gap within noise.
- **Live shadow test** (85 programs scored at deploy time, then labelled): launchpad precision 0.62 and recall 0.83
  for the 8B, against 0.50 / 0.50 for the trees.

## Suggested evaluation

- Use `split` for in-distribution results, `time_split == "test"` (newest 15% by deploy slot) for "new deployment"
  results, and hold out whole launchpad families (`family_hint`, source program names or `clone_group`) for
  generalisation.
- Exclude `type == "unknown"`: it means "no evidence", not a class.
- Report launchpad PR-AUC and recall at fixed precision. Positives are rare (about 3% of known rows).

## Limitations

- **Silver labels.** Most labels are LLM-agent labels; the owner reviewed launchpad-related decisions only, and no
  label-error rate has been measured yet.
- **Weakest labels: wave 3 bots and tokens.**
  - 1,381 wave-3 bot and token-issuance programs were not adjudicated and keep GLM-5.3-flash labels, including 830
    of the 3,454 `trading_bot/*` rows.
  - On a 60-case check, GLM-5.3-flash matched Sonnet's type 77% of the time, against 87% for a second Sonnet pass.
  - Expect noise between generic_bot, copy_volume_bot, arbitrage_mev, launch_bot and aggregator.
- **A launchpad label is a lead, not a validated deployment,** except registry and owner rows.
- **Behaviour features are partly circular.** Rule labels were derived from the `b_*` / `t_*` columns.

## Privacy and redaction

The strings come from public mainnet bytecode. Before release, these were redacted (`redact_public.py`):
- API-key values compiled into programs (`api_key=[redacted]`);
- personal email addresses (published security and contact addresses kept);
- developer usernames in build paths (`/home/<user>/`);
- 64-character hex strings.

Long base58 strings were checked against ed25519 keypairs; none was a private key.

## License

The labels, annotations, splits and derived features are released under CC BY 4.0. The extracted strings and
identifiers are factual data read from public Solana mainnet programs; this release grants no license to those
programs' code, which belongs to their authors.

## Citation

```bibtex
@misc{solana_program_types_2026,
  title  = {Solana Program Types: a bytecode-level dataset of Solana mainnet programs},
  author = {ethduke},
  year   = {2026},
  url    = {https://huggingface.co/datasets/ethduke/solana-program-types}
}
```