Sablier Legacy
These are the indexers for the legacy version of Sablier (deployed between 2019-2021). Sablier Legacy is only indexed by The Graph.
Source Code
Sablier Legacy SubgraphThe Graph subgraph for the legacy Sablier protocol
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 |
---|---|---|
Avalanche | sablier-avalanche | Testing |
Arbitrum | sablier-arbitrum | Testing |
BSC | sablier-bsc | Testing |
Ethereum | sablier | Testing |
Optimism | sablier-optimism | Testing |
Polygon | sablier-matic | Testing |
Ronin | sablier-ronin | N/A |