For developers

Superfluid API: Reading Vesting Scheduler Data

How to read Superfluid's VestingScheduler: the subgraph endpoint per chain, the query, how cliff-plus-flow schedules vest, automatic versus claim-based schedules, and a one-call REST alternative.

·5 min read·By Non Fungible Howard

Superfluid's vesting schedules are indexed by a dedicated VestingScheduler subgraph on each chain, served from Superfluid's own endpoints. Unlike most subgraphs, it needs no Graph API key.

This guide covers the endpoint, the query, how a schedule vests, and the one-call shortcut. For how Superfluid vesting works, see Superfluid cliff and streaming vesting.

The endpoint

One URL per chain, in this pattern:

text
https://subgraph-endpoints.superfluid.dev/{network}/vesting-scheduler

eth-mainnet · base-mainnet · bsc-mainnet · polygon-mainnet · arbitrum-one · optimism-mainnet

The query

graphql
query Schedules($receivers: [String!]!) {
  vestingSchedules(where: { receiver_in: $receivers, deletedAt: null }, first: 200) {
    id
    superToken
    sender
    receiver
    startDate
    cliffAndFlowDate
    cliffAmount
    flowRate          # tokens per second, raw units
    endDate
    totalAmount
    settledAmount
    cliffAndFlowExecutedAt
    endExecutedAt
  }
}

Receiver addresses are matched lowercase. deletedAt: null drops schedules that were deleted.

How a schedule vests

  • Before cliffAndFlowDate: nothing has vested.
  • At cliffAndFlowDate: cliffAmount is paid at once, then tokens flow continuously at flowRate per second.
  • Vested so far = cliffAmount + flowRate × (now − cliffAndFlowDate), capped at totalAmount. At endDate the full amount has vested.

What trips people up

  • Automatic or claim-based. By default an automation service starts the schedule and tokens stream into the recipient's wallet with no action from them. Claim-based schedules instead wait for the recipient to claim before a deadline; after it, the schedule can never start. In our unclaimed vesting study, more than a quarter of claim-based schedules were never claimed.
  • Super Tokens. Payments arrive as a Super Token, usually a wrapped version of an ordinary token, which the recipient may need to unwrap before selling or bridging.
  • Execution can lag. cliffAndFlowExecutedAt and endExecutedAt record when the automation actually ran, which can be later than the scheduled dates.

The shortcut: one REST call

The Vestream API reads the VestingScheduler subgraph on every chain and returns vested, locked and next-unlock values in the same shape as 12 other vesting platforms:

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

Stream IDs come back as superfluid-{chainId}-{scheduleId}. A free key takes 30 seconds at vestream.io/build.

Frequently Asked Questions

Does Superfluid have an API for vesting schedules?

Yes: a VestingScheduler subgraph per chain at subgraph-endpoints.superfluid.dev/{network}/vesting-scheduler. It needs no API key.

Do Superfluid vesting recipients have to claim?

Not for automatic schedules: an automation service starts them and tokens stream to the recipient's wallet. Claim-based schedules must be claimed before their deadline, or they never start.

How do I calculate how much has vested on a Superfluid schedule?

Nothing before cliffAndFlowDate; after it, cliffAmount plus flowRate times the seconds since cliffAndFlowDate, capped at totalAmount.

Which chains does Vestream read Superfluid on?

Ethereum, Base, BNB Chain, Polygon, Arbitrum and Optimism.

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