For developers

Jupiter Lock API: Reading Vesting Escrows on Solana

How to read Jupiter Lock vesting escrows on Solana: the program ID, the account layout, the getProgramAccounts filter for one wallet, how a schedule unlocks, and a one-call REST alternative.

·6 min read·By Non Fungible Howard

Jupiter Lock schedules are accounts owned by the Jupiter Lock program, so you read them with getProgramAccounts and decode the bytes. There's no indexer to query: each escrow account holds its whole schedule.

This guide covers the program, the account layout, the filter that finds one wallet's escrows, and the one-call shortcut. For how Jupiter Lock works, see What is Jupiter Lock?.

The program and the account layout

Program ID: LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn. Each schedule is a VestingEscrow account:

OffsetBytesField
08discriminator (first 8 bytes of sha256("account:VestingEscrow"))
832recipient
4032token_mint
7232creator
1448cliff_time (u64, Unix seconds)
1528frequency (u64, seconds between periods)
1608cliff_unlock_amount (u64)
1688amount_per_period (u64)
1768number_of_period (u64)
1848total_claimed_amount (u64)
1928vesting_start_time (u64)
2008cancelled_at (u64, 0 if not cancelled)

All integers are little-endian.

One wallet's escrows

typescript
import { Connection, PublicKey } from "@solana/web3.js";
import bs58 from "bs58";
import { createHash } from "node:crypto";

const PROGRAM = new PublicKey("LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn");
const DISC = createHash("sha256").update("account:VestingEscrow").digest().subarray(0, 8);

const conn = new Connection(process.env.SOLANA_RPC_URL!);
const accounts = await conn.getProgramAccounts(PROGRAM, {
  filters: [
    { memcmp: { offset: 0, bytes: bs58.encode(DISC) } },  // VestingEscrow accounts only
    { memcmp: { offset: 8, bytes: wallet } },              // recipient = this wallet
  ],
});

for (const { pubkey, account } of accounts) {
  const d = account.data;
  const cliffTime     = Number(d.readBigUInt64LE(144));
  const frequency     = Number(d.readBigUInt64LE(152));
  const cliffAmount   = d.readBigUInt64LE(160);
  const perPeriod     = d.readBigUInt64LE(168);
  const periods       = Number(d.readBigUInt64LE(176));
  const claimed       = d.readBigUInt64LE(184);
  const cancelledAt   = Number(d.readBigUInt64LE(200));
}

How an escrow unlocks

  • Before cliff_time: nothing.
  • At cliff_time: cliff_unlock_amount.
  • Then amount_per_period every frequency seconds, number_of_period times.
  • Total = cliff_unlock_amount + amount_per_period × number_of_period. Claimable is unlocked so far minus total_claimed_amount.

What trips people up

  • Case-sensitive addresses. Solana addresses are base58 and case-sensitive. Never lowercase a wallet or mint.
  • Token metadata isn't in the escrow. Read the mint's decimals from the mint account, and the symbol from token metadata.
  • Scanning every escrow is heavy. The program holds hundreds of thousands of escrows, most fully claimed. To scan them all, request only the slice of bytes you need first, then fetch full accounts for the ones still holding tokens. Many RPC providers rate-limit getProgramAccounts.
  • Cancelled escrows. A non-zero cancelled_at means the schedule was cancelled; don't count it as still vesting.

The shortcut: one REST call

The Vestream API reads Jupiter Lock and the other Solana platforms (Streamflow, Smithii), and returns claimable, locked and next-unlock values in the same shape as 12 other vesting platforms:

bash
curl "https://www.vestream.io/api/v1/wallet/YOUR_SOLANA_WALLET/vestings?protocol=jupiter-lock" \
  -H "Authorization: Bearer vstr_live_YOUR_KEY"

Stream IDs come back as jupiter-lock-101-{escrowAddress} (101 is Solana in the API). For a token-safety check that combines this with mint and freeze authority, see add a token safety check to a Solana trading bot. A free key takes 30 seconds at vestream.io/build.

Frequently Asked Questions

What is the Jupiter Lock program ID?

LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn. Each vesting schedule is a VestingEscrow account owned by this program.

How do I find a wallet's Jupiter Lock escrows?

Call getProgramAccounts on the program with two memcmp filters: the VestingEscrow discriminator at offset 0 and the wallet's address at offset 8.

How much is claimable on a Jupiter Lock escrow?

The cliff amount once cliff_time has passed, plus amount_per_period for each full frequency period since, up to number_of_period, minus total_claimed_amount.

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