---
id: BI0153
title: "Mint launch calendar"
url: https://carbium.sh/library/blockchainideas/mint-launch-calendar
collection: Blockchain ideas
category: Creator and membership
revision: 1
updated: 2026-11-23
author: Carbium
code: MIT (LICENSE in the zip); text: all rights reserved, Carbium Corporation
---

# Mint launch calendar

A day-by-day calendar of mint activity for the drops you track, read from the newest signatures on each candy machine address. One read-only script writes each day's count, failures and first mint time to SQLite.

## Who uses it

Launch teams keep a list of the drops they run, and the question each week is which ones opened, on what day, and how many of their attempts failed. Calendars published elsewhere are typed in by hand. This one reads each drop's candy machine address from the chain, so the day rows record mint activity that already happened.

A community manager runs it once a day against the drops on their list and pastes the day rows into an update. A support lead reads the failure column to see whether a drop had a bad day before a user reports that a mint did not go through. For a live count of failures per error code, the [failed-mint monitor](https://carbium.sh/library/blockchainideas/failed-mint-monitor) is the better tool.

A hackathon crew can start with the default program, which carries mints from many collections, and watch the days fill. Then they can pass one candy machine address to follow a single drop.

## What the calendar shows

Each row is one address and one UTC day. The columns come from the signature list, so every row has the same four values.

| Column | Where it comes from | Example |
|---|---|---|
| Day | block time converted to a UTC date | 2026-11-22 |
| Signatures | count of stored signatures for the address on that day | 84 |
| Failed | signatures whose err is set | 6 |
| First (UTC) | earliest block time that day, as hours and minutes | 14:05 |

A failed signature still lands on chain and still counts as activity, so it sits in the same row as the successes. The day is a UTC date, so a drop that opens late in the evening in Europe appears under the next row. Every time in the calendar is a block time from the chain.

## The build

One file, one SQLite table, and Node built-ins. The script is read-only: it holds no key pair, signs nothing and sends nothing. It writes `mint-calendar.db` in the folder it runs from, so run it where that folder is writable.

1. Each run calls [getSignaturesForAddress](https://carbium.sh/docs/rpc) once per tracked address with limit 200 and commitment confirmed. The code asks for confirmed explicitly, which is also the level @solana/kit uses when a call leaves commitment out.
2. Calls go to the [RPC endpoint](https://carbium.sh/docs/endpoints) with the key in the `x-api-key` header, the way [key headers](https://carbium.sh/docs/auth) are set for RPC calls.
3. A signature without a block time is skipped and picked up on a later run.
4. Each remaining signature is inserted once, keyed on the signature, so running the script again adds only what is new.
5. The calendar query groups stored rows by address and UTC day and prints one line per day.
6. Targets run together under Promise.allSettled, so an address that fails prints its error and the others still print.

`main.ts` (run: `CARBIUM_KEY=<YOUR_KEY> node main.ts`)

```ts
// BI0153 · Mint launch calendar
// https://carbium.sh/library/blockchainideas/mint-launch-calendar
// Copyright (c) Carbium Corporation. MIT License (LICENSE). Keep this notice.
// SPDX-License-Identifier: MIT

import { address, createDefaultRpcTransport, createSolanaRpcFromTransport } from "@solana/kit";
import { DatabaseSync } from "node:sqlite";

const key = process.env.CARBIUM_KEY;
if (!key) {
  console.error("Set CARBIUM_KEY to your Carbium API key.");
  process.exit(1);
}
const rpc = createSolanaRpcFromTransport(
  createDefaultRpcTransport({
    url: process.env.CARBIUM_RPC_URL ?? "https://services.carbium.sh",
    headers: { "x-api-key": key },
  }),
);

// One candy machine address per argument. Default: Candy Machine Core v3, which carries mints for many drops.
const targets = process.argv.slice(2);
if (targets.length === 0) targets.push("CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR");

const db = new DatabaseSync("mint-calendar.db");
db.exec(`CREATE TABLE IF NOT EXISTS activity (
  address TEXT, signature TEXT PRIMARY KEY, day TEXT, block_time INTEGER, failed INTEGER)`);
const insert = db.prepare("INSERT OR IGNORE INTO activity VALUES (?, ?, ?, ?, ?)");

async function scan(target: string): Promise<void> {
  const rows = await rpc
    .getSignaturesForAddress(address(target), { limit: 200, commitment: "confirmed" })
    .send();
  let added = 0;
  for (const row of rows) {
    if (row.blockTime === null) continue; // not yet stamped: picked up on a later run
    const day = new Date(Number(row.blockTime) * 1000).toISOString().slice(0, 10);
    const res = insert.run(target, row.signature, day, Number(row.blockTime), row.err === null ? 0 : 1);
    added += Number(res.changes);
  }
  console.log(`${target.slice(0, 8)} read ${rows.length}, stored ${added} new`);
}

const results = await Promise.allSettled(targets.map(scan));
results.forEach((r, i) => {
  if (r.status === "rejected") {
    console.error(`${targets[i]} failed:`, r.reason instanceof Error ? r.reason.message : r.reason);
  }
});

type Row = { address: string; day: string; total: number; failed: number; first_t: number };
const calendar = db.prepare(`SELECT address, day, COUNT(*) AS total, SUM(failed) AS failed, MIN(block_time) AS first_t
  FROM activity GROUP BY address, day ORDER BY address, day`);
console.log("address   day         signatures  failed  first (UTC)");
for (const r of calendar.all() as unknown as Row[]) {
  const first = new Date(Number(r.first_t) * 1000).toISOString().slice(11, 16);
  console.log(`${r.address.slice(0, 8)}  ${r.day}  ${String(r.total).padStart(10)}  ${String(r.failed).padStart(6)}  ${first}`);
}
db.close();
```

Run it from cron once a day with the candy machine addresses as arguments. The first run stores the newest 200 signatures per address, and later runs add what came after them.

## What it costs

Each tracked address is one call of getSignaturesForAddress, which costs 50 cells. The table gives the rate each plan allows for that call. [Limits are per account](https://carbium.sh/docs/limits), so every key on the account shares the same budget.

| Plan | Plan price and credits | getSignaturesForAddress rate |
|---|---|---|
| Free | $0, 500K credits once at sign-up | 0.24 req/s |
| Dev | $20, 10M credits per month | 1.2 req/s |
| Business | $250, 50M credits per month | 100 req/s |
| Pro | $500, 200M credits per month | 500 req/s |

A daily run over ten addresses is ten calls, far below the Free rate. A tight loop over many addresses is where the rate matters. A call over its limit waits once if its cells refill within a second, and past that it gets a 429 with a retry-after hint. The script prints the refusal and the other addresses still run, so run the refused one again after the hint's wait.

## Where it ends

- The calendar shows what the chain recorded. A launch time set in a candy guard, or announced on a site, does not appear, because the code does not decode the guard.
- Each run reads the newest 200 signatures per address and nothing older. A busy address that sees more than 200 signatures between two runs leaves a gap, and the first run cannot reach back to a drop that opened before it.
- History is the 30-day address index at most. The [getSignaturesForAddress](https://carbium.sh/docs/rpc) index keeps up to 30 days, so a day older than that has no rows, and an empty page there does not show when the address first transacted.
- A drop's mints show under its candy machine address only when the mint transaction lists that account. An address you did not track is not in the calendar.
- A signature whose block time is still null is skipped for that run. It is counted once a later run reads it with a block time.
- The calendar counts signatures. A failed mint and a successful one count the same way in the signature column, and the code does not look up the minted asset.

## When it goes wrong

| What goes wrong | What to do |
|---|---|
| The run prints `read 0` for a drop you know has minted. | Check that the address is the candy machine account, the one the mint transaction lists. If it is, the drop may have opened more than 30 days ago, and the address index has no rows that far back. |
| A line says an address failed with a 429. | The Free rate for this call is 0.24 req/s. Space the addresses out or run them on another day. The other addresses still printed, and the refused one can be run again after the hint's wait. |
| An address fails before any call is made, with an invalid-address error. | The argument is not a base58 address. Pass the address text, not a file name or a URL. |
| A day is missing for a drop that clearly minted that day. | More than 200 signatures arrived between two runs. Run the script more often for busy addresses, or read the day rows as a floor for those days. |
| `mint-calendar.db` cannot be opened. | Run the script from a folder you can write to. The file is created in the current directory. |

## Questions

### Can the calendar show when a drop is scheduled to open?

No. It shows the mint activity the chain already recorded. A scheduled start lives in the candy guard's settings, and this code does not read those.

### Why does the first day in my table not match the real launch?

The first run reads only the newest 200 signatures. Days before the earliest stored row are missing from the table, so the first row marks the start of the stored window and does not mark the drop's launch.

### Do I need my own node to run it?

No. Every call goes through services.carbium.sh with one key, from a script that holds no signing key.

### Will it run on the Free plan?

Yes, for a few tracked addresses a day. Each address is one call at 50 cells, and the Free rate of 0.24 req/s leaves room for a daily run over a short list of drops.

## Related

- [Failed-mint monitor](https://carbium.sh/library/blockchainideas/failed-mint-monitor) (Blockchain ideas, BI0001)
- [First Solana RPC API call](https://carbium.sh/library/howsolana/first-solana-rpc-api-call) (How to use Solana, HS0010)
- [carbium.sh/docs/rpc](https://carbium.sh/docs/rpc)
- [carbium.sh/docs/auth](https://carbium.sh/docs/auth)
- [carbium.sh/docs/limits](https://carbium.sh/docs/limits)
- [carbium.sh/docs/endpoints](https://carbium.sh/docs/endpoints)
