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:
| Offset | Bytes | Field |
|---|---|---|
| 0 | 8 | discriminator (first 8 bytes of sha256("account:VestingEscrow")) |
| 8 | 32 | recipient |
| 40 | 32 | token_mint |
| 72 | 32 | creator |
| 144 | 8 | cliff_time (u64, Unix seconds) |
| 152 | 8 | frequency (u64, seconds between periods) |
| 160 | 8 | cliff_unlock_amount (u64) |
| 168 | 8 | amount_per_period (u64) |
| 176 | 8 | number_of_period (u64) |
| 184 | 8 | total_claimed_amount (u64) |
| 192 | 8 | vesting_start_time (u64) |
| 200 | 8 | cancelled_at (u64, 0 if not cancelled) |
All integers are little-endian.
One wallet's escrows
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_periodeveryfrequencyseconds,number_of_periodtimes. - Total =
cliff_unlock_amount + amount_per_period × number_of_period. Claimable is unlocked so far minustotal_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_atmeans 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:
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.