services
Get a key

library / AI and blockchain / ML classification / SI0106

Token launch feature table

A meme coin classifier needs one row per mint. Read each mint's setup and its recent address history from Carbium, write them as CSV columns, and join your own labels afterwards.

By Carbium · ML classification · SI0106 · updated 2026-11-23

01

What one row holds

A classifier over new tokens needs a flat table: a row per mint, a column per signal, and a label you add later. The chain supplies two kinds of signal. The mint account shows how the token was set up, and the address history shows how it has been used since. Each row here costs two reads.

The label stays yours. Whether a token later died, kept a market or got flagged by a person is a judgment you record next to the row. No RPC call answers it.

ColumnReadWhy a model cares
decimals, supplygetAccountInfo, parsedScale of the token, as the raw integer string and its decimal places.
mint_authority_set, freeze_authority_setgetAccountInfo, parsedWhether someone can still create more supply or freeze holder accounts.
program, extensionsowner of the mint, parsed extension listToken or Token-2022, and how many Token-2022 extensions the mint carries.
sigs, page_fullgetSignaturesForAddressHow many transactions mention the mint, capped at 1,000 per call.
failed_sharethe err field of each signatureShare of listed transactions that failed.
age_hours, span_hours, per_hourblockTime of each signatureAge of the oldest listed transaction, the window the page covers, and the rate inside it.

Both reads are plain JSON-RPC calls. The mint read is one of the account reads at 10 cells, and the signature read is 50 cells.

02

The table builder

One file on @solana/kit 8.6.0 and Node 24, which runs the TypeScript directly. Set CARBIUM_KEY first; the file exits with a message when it is missing. CARBIUM_RPC_URL overrides the endpoint, which defaults to https://services.carbium.sh.

main.ts
// SI0106 · Token launch feature table// https://carbium.sh/library/si/token-launch-feature-table// Copyright (c) Carbium Corporation. MIT License (LICENSE). Keep this notice.// SPDX-License-Identifier: MIT// Token launch feature table: one CSV row of mint setup and address activity per token.// Run: CARBIUM_KEY=... node main.ts [mint ...]import { writeFileSync } from "node:fs";import { address, createDefaultRpcTransport, createSolanaRpcFromTransport } from "@solana/kit";const key = process.env.CARBIUM_KEY;if (!key) {  console.error("Set CARBIUM_KEY to your Carbium API key.");  process.exit(1);}const url = process.env.CARBIUM_RPC_URL ?? "https://services.carbium.sh";const rpc = createSolanaRpcFromTransport(createDefaultRpcTransport({ url, headers: { "x-api-key": key } }));const TOKEN_2022 = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";const BONK = "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263";const WIF = "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm";const USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";const mints = process.argv.length > 2 ? process.argv.slice(2) : [BONK, WIF, USDC];type Info = { decimals?: number; supply?: string; mintAuthority?: string | null; freezeAuthority?: string | null; extensions?: unknown[] };async function row(mint: string): Promise<(string | number)[]> {  const a = address(mint);  const [acc, sigs] = await Promise.all([    rpc.getAccountInfo(a, { commitment: "confirmed", encoding: "jsonParsed" }).send(),    rpc.getSignaturesForAddress(a, { commitment: "confirmed", limit: 1000 }).send(),  ]);  const data = acc.value?.data as unknown as { parsed?: { type?: string; info?: Info } } | undefined;  if (data?.parsed?.type !== "mint" || !data.parsed.info) throw new Error("not a mint account");  const info = data.parsed.info;  const times = sigs.map((s) => Number(s.blockTime ?? 0)).filter((t) => t > 0);  const failed = sigs.filter((s) => s.err !== null).length;  let age = "";  let span = "";  let perHour = "";  if (times.length > 0) {    const newest = Math.max(...times);    const oldest = Math.min(...times);    age = ((Date.now() / 1000 - oldest) / 3600).toFixed(1);    span = ((newest - oldest) / 3600).toFixed(2);    if (newest > oldest) perHour = (sigs.length / ((newest - oldest) / 3600)).toFixed(1);  }  return [    mint,    acc.value?.owner === TOKEN_2022 ? "token-2022" : "token",    info.decimals ?? "",    info.supply ?? "",    info.mintAuthority ? 1 : 0,    info.freezeAuthority ? 1 : 0,    info.extensions?.length ?? 0,    sigs.length,    sigs.length >= 1000 ? 1 : 0,    sigs.length ? (failed / sigs.length).toFixed(3) : "",    age,    span,    perHour,  ];}const lines = [  "mint,program,decimals,supply,mint_authority_set,freeze_authority_set,extensions,sigs,page_full,failed_share,age_hours,span_hours,per_hour",];for (const m of mints) {  try {    lines.push((await row(m)).join(","));  } catch (e) {    console.error(`${m} | ${(e as Error).message}`);  }}writeFileSync("launch-table.csv", lines.join("\n") + "\n");console.log(lines.join("\n"));

run: node main.ts

Pass mint addresses as arguments, or run it bare for three built-in rows: two meme coins and USDC as a plain contrast. The rows print as CSV and also land in launch-table.csv in the working directory.

Mints run one at a time. A mint that fails prints its address and the message on stderr, and the others still produce rows, so one bad address never empties the table.

Both calls read at confirmed commitment, set in each call's options.

03

Reading the columns

  • Authorities. A mint authority still set means supply can grow, and a freeze authority set means accounts can be frozen. Both empty is the usual shape of a finished launch, but USDC has both set, so a rule that treats a set authority as bad in itself will mislabel issuer-run tokens. Let the model see the columns together.
  • page_full. When it is 1, the page hit 1,000 signatures. Then span_hours covers only the latest stretch and age_hours is the age of the oldest listed transaction, which is later than the mint's creation. Compare per_hour across rows only when the pages are full in the same way.
  • age_hours on a short page. When page_full is 0 and age_hours is well under 720, the oldest listed transaction is the earliest the index holds for the mint. For a new launch that is its creation, so the value is the token's age. An older token that sat quiet for weeks can show the same shape, so read that oldest transaction with getTransaction when the age matters for a label. A value near 720 hours is the edge of the address index, and the token may be older.
  • failed_share. Failed transactions are listed with the rest, so the share counts attempts that landed in a block and errored. A mint that is hard to interact with can show it.
  • extensions. A classic token reads 0. A Token-2022 mint lists extensions such as a transfer fee or a metadata pointer; the count is a cheap signal, and each name is worth its own column once you know which ones matter to your labels. Token-2022 metadata lookup shows how in-mint metadata is read.
04

Cost of a table

One row is 60 cells, 10 for the mint read and 50 for the signature page, so the three built-in rows cost 180. Each call draws on its own rate class, and a class absorbs a burst of 1,024 cells or one second of its rate, whichever is larger. On Free and Dev the signature class runs out first, after about 20 rows. After that the slower call sets the pace: the signature call at 0.24 req/s on Free and 1.2 on Dev, the mint read at 50 on Business and 400 on Pro. On Dev that is about 70 rows a minute. Limits are per account, so a scheduled table build shares one budget with every other key on the account.

Batching the mint reads with getMultipleAccounts saves requests but not cells. It charges 10 cells per pubkey and takes up to 300 pubkeys a call on Pro; below Pro the 1,024-cell burst caps a call at 100. Since 50 of each row's 60 cells go to the signature call, which takes one address at a time, the saving is small. Keep the per-mint call until the table is large.

05

From three rows to a dataset

The file takes mints you give it. To find new ones, list the newest signatures of the program that creates the tokens you care about, read each transaction with getTransaction at 50 cells, and collect the mint accounts it touches. Pass maxSupportedTransactionVersion: 1 with an encoding, because with the value absent or 0 a v1 transaction answers -32015. A signature near the old end of a page can also answer null, so skip those and keep going.

Stamp each row with the date you built it. Every column moves as the token ages, and a classifier trained on rows taken at random moments in a token's life learns the moment as much as the token. Take the snapshot at a fixed age after launch, such as 24 hours, and record the label only after a longer wait.

For history that goes back further, 30-day training dataset builds a 30-day training set from address history, and Rug-risk token scorer scores a token with fixed rules. A rule scorer is a fair baseline for the model on this table.

06

Where it ends

  • No holder concentration. getTokenLargestAccounts answers -32601 as not served, so the table has no top-holder share. Largest token holders is the entry on largest token holders.
  • Signatures list transactions that mention the mint address. A plain token transfer names the token accounts and the sender's authority, never the mint, so sigs undercounts activity that moves through Transfer and counts TransferChecked fully.
  • History is the 30-day address index. An empty page past 30 days marks the age limit, and the address may have older transactions.
  • No name, symbol or image. Those sit in a metadata account, or in the mint itself for a Token-2022 mint whose metadata pointer names the mint, and the file does not read them.
  • No market data. Liquidity, pool age and quote depth need other reads and are not in the file.
  • Each row is a snapshot at confirmed. It ages the moment it is written, which is why the build date belongs in the table.
07

When it goes wrong

what goes wrongwhat to do
A mint prints 'not a mint account' on stderr.The address is a token account, a wallet or an unfunded address. Pass the mint, not the account that holds the tokens. A null account from getAccountInfo lands here too.
A row has empty age_hours, span_hours and per_hour.The page came back with no timed signatures: the mint had no activity in the last 30 days, or its transactions have no block time. Keep the row with those cells empty, or drop it, and decide the same way for every mint.
Rows stop partway through a long list and stderr fills with 429 lines.Those mints made no row. On Free the signature call's 1,024-cell burst covers about 20 mints, and at 0.24 req/s its cells take longer than the one-second wait to refill. Wait for the retry-after hint, then rerun with only the missing mints and append the rows.
Every row fails with 401.The key was not recognized. Check that CARBIUM_KEY holds the whole key and that no quote or space came along from the shell.
Old, quiet tokens show age_hours near 720.That is the index limit, not the token's age. Treat page_full 0 with a value near 720 as '30 days or more' and recode it before training.
08

Questions

Can the chain give me a rug-pull label?

No read answers it. Derive the label from later behaviour you can observe, such as the mint authority being used, supply changing or activity ending, wait a fixed time after the snapshot, and join it to the row by mint address.

Why does a classic token show 0 extensions?

Extensions exist only on Token-2022 mints. The parsed info of a classic mint has no extension list, so the file counts it as 0. Keep program in the table so the model can tell the two cases apart.

Should I use finalized for training data?

Yes, if you build the table after the fact. Change confirmed to finalized in both calls; on mainnet finalized now trails processed by one slot at most, so the rows stay current.

Can I run this over thousands of mints?

Yes, within the account's budget. The signature call is 50 cells at a rate that depends on the plan, so a few thousand rows is a matter of pacing the loop to that rate and keeping a list of mints still missing.