Sablier Streams
This page documents the indexers for the Sablier Streams protocol, which covers both Lockup (powering the Vesting product) and Flow (powering the Payments product) in the Sablier Interface.
The Lockup and Flow protocols are served by a unified indexer. In the GraphQL schema, entities are prefixed by protocol:
FlowStream, LockupStream, FlowAction, LockupAction, FlowBatch, LockupBatch, etc.
Envio
Source Code
Endpoints
Envio is a multi-chain indexer. There's a single GraphQL API endpoint that aggregates data across chains. This approach differs from other vendors like The Graph, which require a separate indexer for each chain where Sablier is available.
The Graph
Source Code
Endpoints
In the table below, you will see three URLs:
Production URL: requires a Studio API key for making queries.Testing URL: doesn't require an API key but it's rate-limited to 3000 queries per day. Opening this URL in the browser opens a GraphiQL playground.Explorer URL: The explorer URL for the indexer, if available.
To learn how to create a Studio API key, check out this guide.
The API key has to be provided via an Authorization: Bearer <API_KEY> header. Here are two examples in curl and
JavaScript:
- curl
- JavaScript
curl -X POST \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"query": "{ _meta: { block { number } } }"' \
<PRODUCTION_URL>
import { GraphQLClient } from "graphql-request";
async function getBlockNumber() {
const client = new GraphQLClient("<PRODUCTION_URL>", {
headers: {
Authorization: `Bearer <API_KEY>`,
},
});
const query = `query { _meta: { block { number } } }`;
const result = await client.request(query);
console.log(result);
}
| Chain | Production URL | Testing URL | Explorer URL |
|---|---|---|---|
| Abstract | sablier-lockup-abstract | Testing | Explorer |
| Arbitrum | sablier-lockup-arbitrum | Testing | Explorer |
| Avalanche | sablier-lockup-avalanche | Testing | Explorer |
| Base | sablier-lockup-base | Testing | Explorer |
| Base Sepolia | sablier-lockup-base-sepolia | Testing | Explorer |
| Berachain | sablier-lockup-berachain | Testing | Explorer |
| BNB Chain | sablier-lockup-bsc | Testing | Explorer |
| Chiliz | sablier-lockup-chiliz | Testing | Explorer |
| Denergy | sablier-lockup-denergychain | N/A | Explorer |
| Ethereum | sablier-lockup-ethereum | Testing | Explorer |
| Gnosis | sablier-lockup-gnosis | Testing | Explorer |
| Lightlink | sablier-lockup-lightlink | N/A | Explorer |
| Linea Mainnet | sablier-lockup-linea | Testing | Explorer |
| OP Mainnet | sablier-lockup-optimism | Testing | Explorer |
| Polygon | sablier-lockup-polygon | Testing | Explorer |
| Scroll | sablier-lockup-scroll | Testing | Explorer |
| Sepolia | sablier-lockup-sepolia | Testing | Explorer |
| Sonic | sablier-lockup-sonic | Testing | Explorer |
| Unichain | sablier-lockup-unichain | Testing | Explorer |
| ZKsync Era | sablier-lockup-zksync | Testing | Explorer |