Sablier Airdrops
This page documents the indexers for the Sablier Airdrops protocol, which powers the Airdrops product in the Sablier Interface.
info
Vested airdrops will create a Lockup stream when a user makes a claim.
Envio
Source Code
Envio indexer for the Sablier Airdrops protocolsrc/envio/airdrops
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.
Table
The Graph
Source Code
Graph indexer for the Sablier Airdrops protocolsrc/graph/airdrops
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-airdrops-abstract | Testing | Explorer |
| Arbitrum | sablier-airdrops-arbitrum | Testing | Explorer |
| Avalanche | sablier-airdrops-avalanche | Testing | Explorer |
| Base | sablier-airdrops-base | Testing | Explorer |
| Base Sepolia | sablier-airdrops-base-sepolia | Testing | Explorer |
| Berachain | sablier-airdrops-berachain | Testing | Explorer |
| BNB Chain | sablier-airdrops-bsc | Testing | Explorer |
| Chiliz | sablier-airdrops-chiliz | Testing | Explorer |
| Denergy | sablier-airdrops-denergychain | N/A | Explorer |
| Ethereum | sablier-airdrops-ethereum | Testing | Explorer |
| Gnosis | sablier-airdrops-gnosis | Testing | Explorer |
| Lightlink | sablier-airdrops-lightlink | N/A | Explorer |
| Linea Mainnet | sablier-airdrops-linea | Testing | Explorer |
| OP Mainnet | sablier-airdrops-optimism | Testing | Explorer |
| Polygon | sablier-airdrops-polygon | Testing | Explorer |
| Scroll | sablier-airdrops-scroll | Testing | Explorer |
| Sepolia | sablier-airdrops-sepolia | Testing | Explorer |
| Sonic | sablier-airdrops-sonic | Testing | Explorer |
| Unichain | sablier-airdrops-unichain | Testing | Explorer |
| ZKsync Era | sablier-airdrops-zksync | Testing | Explorer |