For developers

Build With Token Unlock Data: A Guide for Vibecoders and Side Projects

How to use the Vestream API and MCP server in your own projects: set up in five minutes, then seven builds with copy-paste code, from a Telegram unlock bot to a lock check, plus how far the free plan goes.

·14 min read·By Non Fungible Howard

You can build something useful with token unlock data in an afternoon. An alert bot for your Telegram group, a lock check you run before buying a new token, reminders for your own vesting, a chart for your community's site. The Vestream API gives you the data for all of these from one key: 24 endpoints covering 13 vesting and lock protocols on 13 chains, EVM and Solana, read from the contracts themselves.

This guide is for people building for themselves: side projects, bots, small tools, things you vibe-code with Claude or Cursor in an evening. It covers getting a key, your first call, seven projects with code you can copy, how far the free plan goes, and the mistakes that catch people out.

⚡The short version

Get a free key at vestream.io/build (it appears on screen, no review). Put it in an environment variable. Start with GET /unlocks/upcoming or GET /token/{chainId}/{address}/summary. The free plan is 250 calls a month, which is plenty for a daily bot or a personal tracker.

What the data is, in plain terms

Most tokens don't hit the market all at once. Team, investor and community allocations sit in vesting contracts and release on a schedule: a cliff after a year, then monthly tranches, or a steady per-second stream. Projects also lock tokens (often liquidity or treasury) until a date. When those tokens unlock, supply rises, and holders want to know before it happens.

Every platform stores this differently. Sablier streams, Hedgey NFT plans, UNCX and Team Finance lockers, PinkSale locks, Streamflow and Jupiter Lock on Solana: each needs its own integration. Vestream reads all of them and puts them into one shape, so your code asks one question and gets one answer, whichever platform the tokens are on.

  • Schedules: how much is locked, how it releases, and every unlock date.
  • Positions: what a wallet holds in vesting, what it can claim now, and what it has already claimed.
  • Market views: every unlock coming up across all tokens, new locks as they appear, and locks cancelled early.
  • Context: USD values, liquidity and volume, so you can tell a $40 unlock from a $4M one.

Set up in five minutes

1. Get a free key

Go to vestream.io/build and fill in the short form. The key appears on screen straight away and is emailed to you. Confirm your email within 24 hours to keep it working. No card, no review.

2. Make your first call

bash
# keep the key out of your code: put it in an environment variable
export VESTREAM_API_KEY="vstr_live_…"

# your first call: what the index covers right now
curl -H "Authorization: Bearer $VESTREAM_API_KEY" https://www.vestream.io/api/v1/stats

Every response is JSON. Amounts are whole numbers in the token's smallest unit (like wei), so divide by 10^token_decimals before showing them. More on that in the mistakes section.

3. Add a tiny helper

If you're working in JavaScript or TypeScript, this helper is all you need for every project below. It adds the key, turns errors into readable messages, and converts amounts safely.

javascript
// vestream.mjs: a small helper to reuse in every project (Node 18+ has fetch built in)
const BASE = "https://www.vestream.io/api/v1";

export async function vestream(path, init = {}) {
  const res = await fetch(BASE + path, {
    ...init,
    headers: {
      Authorization: `Bearer ${process.env.VESTREAM_API_KEY}`,
      "Content-Type": "application/json",
      ...init.headers,
    },
  });
  if (!res.ok) {
    const body = await res.json().catch(() => ({}));
    throw new Error(`Vestream ${res.status}: ${body.error ?? res.statusText}`);
  }
  return res.json();
}

// Amounts come back as whole numbers in the token's smallest unit.
// Convert with BigInt so big supplies don't lose precision.
export function toUnits(raw, decimals = 18) {
  const big = BigInt(raw);
  const scale = 10n ** BigInt(decimals);
  return Number(big / scale) + Number(big % scale) / Number(scale);
}

4. Or skip the code: connect your AI

If you build with Claude, Cursor or another MCP client, add the Vestream MCP server and your assistant can call the API itself. Paste this into your client's MCP config (Claude Desktop, Cursor, Windsurf, or a project .mcp.json for Claude Code):

json
{
  "mcpServers": {
    "vestream": {
      "command": "npx",
      "args": ["-y", "@vestream/mcp"],
      "env": { "VESTREAM_API_KEY": "vstr_live_…" }
    }
  }
}

Restart the client and the tools appear. You can then ask questions in plain English, or ask your assistant to write the projects below for you. The MCP page lists every tool.

Seven projects you can build this week

Each one is small, useful on its own, and fits comfortably inside the free plan. Swap the placeholder addresses (0xYourToken, 0xYourWallet) for real ones.

1. An unlock alert bot for your Telegram group

Every morning, post the unlocks worth more than $1M in the next 24 hours. One call a day.

javascript
// bot.mjs: post tomorrow's big unlocks to a Telegram group
import { vestream, toUnits } from "./vestream.mjs";

const { unlocks } = await vestream("/unlocks/upcoming?days=1&min_usd=1000000");

for (const u of unlocks) {
  if (!u.amount) continue;
  const tokens = toUnits(u.amount, u.token_decimals).toLocaleString("en-US", { maximumFractionDigits: 0 });
  const when = new Date(u.unlock_time * 1000).toUTCString();
  const text =
    `🔓 ${u.token_symbol ?? "Unknown token"}: ${tokens} tokens unlock ${when}\n` +
    `Worth about $${Math.round(u.usd_value).toLocaleString("en-US")} · ${u.recipients} recipient(s) · ${u.protocol}\n` +
    u.url;

  await fetch(`https://api.telegram.org/bot${process.env.TELEGRAM_TOKEN}/sendMessage`, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ chat_id: process.env.TELEGRAM_CHAT_ID, text }),
  });
}

console.log(`Posted ${unlocks.length} unlock(s).`);

Run it for free on a schedule with GitHub Actions. Add your three secrets under the repository's Settings → Secrets and variables → Actions:

yaml
# .github/workflows/unlock-bot.yml: runs the bot every morning, for free
name: unlock-bot
on:
  schedule:
    - cron: "0 8 * * *"      # 08:00 UTC daily
  workflow_dispatch:          # lets you run it by hand to test
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: node bot.mjs
        env:
          VESTREAM_API_KEY: ${{ secrets.VESTREAM_API_KEY }}
          TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
          TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}

Want it for one community's token only? Use /token/{chainId}/{address}/unlocks?days=1 instead, or add &chain=8453 to stick to one chain. For the version you'd leave running (Discord too, a watchlist, no repeated alerts), see how to build a token unlock alert bot.

2. A lock check before you buy

New token, big promises. Is the team's supply actually locked, for how long, and can they pull it back? The summary endpoint answers all of that in one call, and /locks lists every schedule if you want the detail.

python
# lockcheck.py: "is this token's supply really locked?"
import os, sys, requests

BASE = "https://www.vestream.io/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['VESTREAM_API_KEY']}"}

chain_id, token = sys.argv[1], sys.argv[2]          # e.g. 8453 0xYourToken
s = requests.get(f"{BASE}/token/{chain_id}/{token}/summary", headers=HEADERS, timeout=30).json()

dec = s["token_decimals"] or 18
units = lambda raw: int(raw) / 10**dec
locked = units(s["locked_now"])

if locked == 0:
    print("Nothing locked in any schedule we index. That's not proof there's no lock elsewhere.")
    sys.exit()

cancelable = units(s["cancelable_locked"])
print(f"{s['token_symbol']}: {locked:,.0f} locked in {s['active_schedules']} schedules ({', '.join(s['protocols'])})")
print(f"  Sender can cancel: {cancelable:,.0f} ({cancelable / locked:.0%} of what's locked)")
print(f"  Unlocking in the next 30 days: {units(s['unlocking_next_30d']):,.0f}")
if s["largest_recipient_share"]:
    print(f"  Largest recipient holds {s['largest_recipient_share']:.0%} of the locked supply")
if s["locked_value_usd"] is not None:
    print(f"  Locked value: ${s['locked_value_usd']:,.0f}")

Run it as python lockcheck.py 8453 0xYourToken. The cancelable_locked figure is the one to watch: tokens in a schedule the sender can cancel aren't really committed.

3. Reminders for your own vesting

If you're paid in tokens or hold an investor allocation, you shouldn't have to remember every cliff. This checks your wallets once a day and posts to a Discord channel when something unlocks this week.

javascript
// reminders.mjs: a Discord message when one of YOUR wallets has an unlock this week
import { vestream, toUnits } from "./vestream.mjs";

const WALLETS = ["0xYourFirstWallet", "YourSolanaWallet"];   // Solana addresses: keep the exact case

const lines = [];
for (const wallet of WALLETS) {
  const { unlocks } = await vestream(`/wallet/${wallet}/upcoming-unlocks?days=7`);
  for (const u of unlocks) {
    const day = new Date(u.unlock_time * 1000).toDateString();
    lines.push(`• ${day}: ${u.token_symbol} (${u.unlock_type}) on ${u.protocol}, wallet ${wallet.slice(0, 6)}…`);
  }
}

if (lines.length) {
  await fetch(process.env.DISCORD_WEBHOOK_URL, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ content: `Unlocks this week:\n${lines.join("\n")}` }),
  });
}

Three wallets checked daily is about 90 calls a month. Prefer email or a phone notification? Swap the Discord call for whatever you already use; the API part stays the same.

4. An unlock chart for a token page

Showing your community when supply unlocks builds trust. The timeseries endpoint returns ready-to-chart amounts per day, week or month. Call it from your server, not the browser, so the key stays private, and cache the result.

typescript
// app/api/unlock-chart/route.ts (Next.js): your key stays on the server,
// and the response is cached for six hours so a busy page costs ~4 calls a day.
export const revalidate = 21600;

export async function GET() {
  const res = await fetch(
    "https://www.vestream.io/api/v1/token/8453/0xYourToken/unlocks/timeseries?interval=month&periods=12",
    { headers: { Authorization: `Bearer ${process.env.VESTREAM_API_KEY}` }, next: { revalidate: 21600 } },
  );
  const data = await res.json();
  // [{ period: "2026-12", amount: "…", usd_value: 123456 }, …] → feed straight into your chart library
  return Response.json(data.series);
}

Plot period against amount (converted with the token's decimals) in Chart.js, Recharts or anything else. For what already unlocked, use /unlocks/history, which also values each period at the price at the time.

5. A weekly "can the market take it?" report

A $2M unlock means very different things for a token that trades $50M a day and one that trades $200k. The pressure endpoint compares upcoming unlocks with liquidity, 24-hour volume and market cap.

python
# pressure.py: this week's biggest unlocks, and whether the market can absorb them
import os, requests

BASE = "https://www.vestream.io/api/v1"
H = {"Authorization": f"Bearer {os.environ['VESTREAM_API_KEY']}"}

week = requests.get(f"{BASE}/unlocks/upcoming?days=7&min_usd=250000&limit=5", headers=H, timeout=30).json()

for u in week["unlocks"]:
    p = requests.get(f"{BASE}/token/{u['chain_id']}/{u['token_address']}/pressure?days=7", headers=H, timeout=30).json()
    r = p["ratios"]["unlock_to_daily_volume"]
    verdict = "no market data" if r is None else ("more than a day of trading" if r > 1 else f"{r:.0%} of a day's volume")
    print(f"{u['token_symbol']:<10} ${u['usd_value']:>12,.0f}  {verdict}")

Run weekly, that's about 24 calls a month: one for the list and one per token.

6. Ask your AI assistant

With the MCP server connected, you don't need to write code to explore. Try prompts like:

  • "What are the biggest token unlocks in the next 7 days, and which ones are large compared with daily volume?"
  • "Check the locks on this token: 8453, 0x… How much can the team still cancel?"
  • "What's vesting to 0x… and when is the next unlock?"
  • "Show me locks cancelled early in the last week."
  • "Write me a Telegram bot that posts unlocks over $1M every morning, using the Vestream tools."

That last one is the vibecoder move: your assistant knows the endpoints and the response shapes, so the first version usually works.

7. Your own vesting income record

If you receive vesting tokens, the income endpoint lists what unlocked and what you claimed, valued in USD at the time, on both of the bases tax rules use. It's a solid starting point for your own records or for your accountant. It isn't tax advice.

python
# income.py: a CSV of your vesting income for your own records (not tax advice)
import json, os, requests

wallet = "0xYourWallet"
r = requests.get(
    f"https://www.vestream.io/api/v1/wallet/{wallet}/income?since=2026-01-01",
    headers={"Authorization": f"Bearer {os.environ['VESTREAM_API_KEY']}"},
    timeout=60,   # the first call for a new wallet can take ~25 seconds
).json()

with open("vesting-income.json", "w") as f:   # keep the raw response: it says what couldn't be checked
    json.dump(r, f, indent=2)

print(r.get("coverage"))

Use one basis (when tokens unlocked, or when you claimed them) for a report, never both, or the same income is counted twice. The response's coverage field lists anything that couldn't be checked, so an empty list is never read as no income.

More you can build

IdeaEndpoints
A "new locks" feed for a launchpad communityGET /locks/recent, GET /activity
A warning when a team cancels its vestingGET /locks/cancelled (or the lock.cancelled webhook on paid plans)
A holders view: who receives a token's vestingGET /token/{chainId}/{address}/recipients
Period-end snapshots for a DAO treasury reportGET /token/{chainId}/{address}/schedule?asOf=2026-12-31
A watchlist of 20 tokens in one requestPOST /batch/tokens
A browsable list of every token with active vestingGET /tokens?sort=next_unlock
A pre-buy safety check for a Solana trading botGET /token/101/{mint}/summary, plus Solana RPC

Every endpoint, with parameters and examples, is in the developer docs. The Solana safety check has its own guide with full code: add a token safety check to a Solana trading bot.

How far the free plan goes

The free plan gives you 250 calls a month, up to 50 a day and 30 a minute, on every endpoint. Each request is one call; a batch request counts one call per token or wallet in it. Here's what the projects above use:

ProjectCalls a month
Daily Telegram botabout 30
Lock check, run by hand1 per check
Reminders for 3 wallets, dailyabout 90
Token page chart, cached 6 hoursabout 120
Weekly pressure report, top 5about 24

Two tips stretch it further: cache responses (most of this data changes daily, not by the second), and filter on the server with min_usd, chain and days rather than pulling everything and filtering yourself. When your project runs for other people, or you want webhooks pushed to you instead of polling, Starter is $49 a month for 1,000 calls. Plans are on the developer page.

Mistakes that catch people out

  • Treating amounts as decimals. amount and locked_now are integers in the token's smallest unit. Divide by 10^token_decimals, and use BigInt (or Python's int) first: big supplies overflow ordinary numbers.
  • Lowercasing Solana addresses. Solana addresses and mints are case-sensitive. Pass them exactly as they appear. EVM addresses can be any case.
  • Putting the key in a web page. Anything in front-end code is public. Call the API from a server, a serverless function or a script, and keep the key in an environment variable.
  • Reading "nothing found" as "nothing exists". The API covers the platforms Vestream indexes. An empty answer means we found nothing, not that no lock exists anywhere. Responses include a coverage note saying what was and wasn't checked.
  • Expecting a USD value for every token. usd_value is null when a token's market is too thin to value the amount honestly. That's deliberate: a $5B figure on a token with a $10k pool would mislead your users.
  • Polling every minute. Unlock schedules don't change by the minute. Hourly or daily is plenty, and it keeps you well inside the limits.

Where to go next

Frequently Asked Questions

Is the Vestream API free?

Yes. The free plan covers every endpoint and the MCP server: 250 calls a month, 50 a day. Personal projects fit easily. Paid plans add more calls, webhooks and commercial use.

Do I need to know Solidity or run a node?

No. The API reads the contracts for you and returns plain JSON. If you can make an HTTP request, or ask an AI assistant to, you can use it.

Can I use it with Claude or Cursor without writing code?

Yes. Add the @vestream/mcp server to your client's MCP config with your key, and your assistant can call every endpoint as a tool.

Which chains and platforms are covered?

Thirteen vesting and lock platforms, including Sablier, Hedgey, UNCX, Team Finance, PinkSale, Superfluid, Streamflow and Jupiter Lock, on 13 chains including Ethereum, Base, BNB Chain, Arbitrum and Solana.

How fresh is the data?

The index refreshes at least daily, and responses say when they were last indexed. For a claim you're about to make, check the contract or the platform's own app too.

Can I build something commercial on the free plan?

Build and test on Free. Once other people rely on your product, move to a paid plan.

Track your own token vesting

Paste any wallet, see every unlock across 13 protocols and 13 chains. Free, no sign-up.

Build with the same data

A free API key and MCP server for token vesting, lock and unlock data across every protocol we index.

Get a free API key →

Read the developer docs

More from Vestream Resources