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:
https://subgraph-endpoints.superfluid.dev/{network}/vesting-scheduler
eth-mainnet · base-mainnet · bsc-mainnet · polygon-mainnet · arbitrum-one · optimism-mainnetThe query
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:cliffAmountis paid at once, then tokens flow continuously atflowRateper second. - Vested so far =
cliffAmount + flowRate × (now − cliffAndFlowDate), capped attotalAmount. AtendDatethe 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.
cliffAndFlowExecutedAtandendExecutedAtrecord 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:
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.