For developers

Streamflow API: Reading Solana Vesting Data

How to read Streamflow vesting streams on Solana: the SDK call for one wallet, the program scan for every stream, the Solana-specific traps (case-sensitive addresses, token metadata, pruning RPCs) and a one-call REST alternative.

·6 min read·By Non Fungible Howard

Streamflow is the largest token vesting platform on Solana, and its data works differently from EVM vesting. There are no event logs to index. Streams are accounts owned by Streamflow's program, and you read them with Streamflow's TypeScript SDK or by scanning the program's accounts.

This guide covers both ways in, the Solana traps that catch EVM developers, and a one-call alternative. For what Streamflow is and how its schedules work, see Streamflow on Solana.

One wallet: the SDK

Streamflow's SDK, @streamflow/stream, returns every stream for a wallet in one call:

typescript
import { SolanaStreamClient, StreamDirection, StreamType } from "@streamflow/stream";

const client = new SolanaStreamClient(process.env.SOLANA_RPC_URL!);

const streams = await client.get({
  address: wallet,                 // base58, exactly as the wallet shows it
  type: StreamType.All,
  direction: StreamDirection.Incoming,
});

for (const [id, s] of streams) {
  console.log(id, s.mint, s.depositedAmount.toString(), s.withdrawnAmount.toString());
}

Each SDK call makes several RPC requests underneath. Free Solana RPCs rate-limit quickly, so run a few wallets at a time with a short pause between batches rather than firing hundreds in parallel.

Every stream: the program scan

To see every open stream rather than one wallet's, scan the program's accounts with getProgramAccounts and a filter on the stream's closed flag, then decode the accounts in your own process. One scan returns tens of thousands of open streams. That is far cheaper than looking wallets up one by one, but many RPC providers block or throttle getProgramAccounts, so you need a provider that allows it.

Solana traps for EVM developers

  • Addresses are case-sensitive. Solana addresses are base58. Lowercasing one, a habit from EVM code, produces a different, invalid address and breaks every lookup and link.
  • Token symbols aren't on the stream. A stream holds a mint address. For the symbol and decimals, read the mint account, then the Token-2022 metadata extension or the Metaplex metadata account. Price-list lookups alone leave many tokens showing a truncated mint instead of a name.
  • An empty answer can mean pruned history. Some Solana RPC nodes prune old data and return an empty list for history they no longer keep, which looks exactly like a wallet with no activity. Check how far back your node goes before trusting an empty result.
  • Not every stream is time-based. Streamflow also has price-aligned unlocks that depend on an oracle price. They don't fit a time schedule, so decide how you will treat them. Vestream currently skips them.

The shortcut: one REST call

The Vestream API reads Streamflow, Jupiter Lock and Smithii on Solana alongside 10 EVM platforms, and returns them all in one shape. Pass the Solana address exactly as it appears:

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

Token symbols and decimals come back resolved from the chain, and claimable, locked and next-unlock values are computed for you. Stream IDs look like streamflow-101-{streamAddress}, with the stream address kept case-sensitive.

Frequently Asked Questions

Does Streamflow have an API?

Streamflow publishes a TypeScript SDK, @streamflow/stream, that reads streams from the Solana chain. Vestream's REST API also returns Streamflow positions for any wallet, alongside other Solana and EVM vesting platforms.

How do I get all Streamflow streams for a wallet?

Call client.get({ address }) on SolanaStreamClient from @streamflow/stream with incoming direction, or GET /wallet/{address}/vestings?protocol=streamflow on the Vestream API.

Why does my Streamflow lookup return nothing?

Check that the address wasn't lowercased (Solana addresses are case-sensitive), that your RPC isn't rate-limiting the SDK's calls, and that the node hasn't pruned the history you're asking for.

Can I get every Streamflow stream on Solana?

Yes, by scanning the Streamflow program's accounts with getProgramAccounts and decoding them. It needs an RPC provider that allows program scans.

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