Skip to main content

Airdrops Endpoints

The Graph

This subgraph tracks events emitted by the Sablier Airdrops contracts, specifically the ones in charge of Merkle distributions. It deals with airdrop-specific actions like the factory deploying an airdrop campaign, admin clawbacks, and users claiming airdrops.

Airdrops work in tandem with our Vesting feature since some Merkle distributions will produce new Lockup streams.

warning
In February 2025, we deprecated the old series of `sablier-v2-*` subgraphs endpoints. They will remain available, but they will not track the latest versions of the Sablier Protocol. If you need to use the deprecated endpoints, head over to the Previous Endpoints section.

Source Code

Sablier Subgraphs - Merkle - The Graph@sablier-labs/subgraphs - apps/merkle

Endpoints

ChainExplorerStudio1Decentralized Network2
Ethereumsablier-airdrops-ethereumStudioDe. Network
Abstractsablier-airdrops-abstractStudioDe. Network
Arbitrumsablier-airdrops-arbitrumStudioDe. Network
Arbitrum Sepoliasablier-airdrops-arbitrum-sepoliaStudioDe. Network
Avalanchesablier-airdrops-avalancheStudioDe. Network
Basesablier-airdrops-baseStudioDe. Network
Base Sepoliasablier-airdrops-base-sepoliaStudioDe. Network
Berachainsablier-airdrops-berachainStudioDe. Network
Blastsablier-airdrops-blastStudioDe. Network
BNB Chainsablier-airdrops-bscStudioDe. Network
Chiliz Chainsablier-airdrops-chilizStudioDe. Network
Gnosissablier-airdrops-gnosisStudioDe. Network
IoTeXsablier-airdrops-iotexStudioDe. Network
Lineasablier-airdrops-lineaStudioDe. Network
Lightlinksablier-airdrops-lightlink*N/ALightlink Node*
Modesablier-airdrops-modeStudioDe. Network
MorphN/A [Envio]N/A [Envio]N/A [Envio]
Optimismsablier-airdrops-optimismStudioDe. Network
Optimism Sepoliasablier-airdrops-optimism-sepoliaStudioDe. Network
Polygonsablier-airdrops-polygonStudioDe. Network
Scrollsablier-airdrops-scrollStudioDe. Network
Sepoliasablier-airdrops-sepoliaStudioDe. Network
SuperseedN/A [Envio]N/A [Envio]N/A [Envio]
TangleN/A [Envio]N/A [Envio]N/A [Envio]
XDCsablier-airdrops-xdc*N/AXDC Node*
zkSyncsablier-airdrops-zksyncStudioDe. Network

Envio

Chains: Single vs. Aggregated

While there is a subgraph for each chain Sablier is deployed on, the Envio indexer is a single endpoint that aggregates data across all chains. This approach allows for querying all Sablier data from a single API.

This indexers tracks the events emitted by the @sablier/airdrops contracts, specifically the ones in charge of merkle distributions. It deals with airdrops-specific actions like the factory creating an airstream campaign, admin clawbacks, or users claiming stream NFTs as defined in the attached Merkle tree.

Source Code

Sablier Subgraphs - Merkle - Envio@sablier-labs/subgraphs - apps/merkle-envio

Endpoints

ChainEndpoint on the Hosted Network
All-Networks3https://indexer.hyperindex.xyz/[...]/v1/graphql

The endpoint is meant to be plugged into a query client. Use Hasura's online explorer to view the entities and query API.

Sablier SDK: Merkle API

Sablier's Airdrops rely on pre-configured Merkle trees. This data structure contains the list of recipients as well as their individual claim details. We use the following service to create the Merkle tree, as well as proofs for the recipient's claims.

Source Code

Sablier SDK - Merkle API@sablier-labs/merkle-api

Endpoints

HostEndpoint
Sablierhttps://sablier-merkle-api.vercel.app

Footnotes

  1. The Graph's Studio endpoints are considered for testing purposes and may be rate-limited

  2. Endpoints could include the following types: (1) The Graph's Decentralized Network (paid) or (2) Custom Nodes (e.g. LightLink). Because the "Decentralized Network" subgraph flavors (e.g., Legacy Ethereum) operate on The Graph Network, you will need to substitute the YOUR_API_KEY placeholder in the Query URL with your own API key. If you require assistance with managing your API keys and configuring indexer preferences, this article serves as an excellent guide

  3. All-Networks means most of the networks supported by Sablier, e.g., Mainnet, Optimism, Polygon, Sepolia. The full list can be found here. To add a new chain to our Envio indexer, create a new list of contracts (/addresses) and import that configuration into our bundles (see /bundles).