Airdrops
The Graph
This subgraph tracks events emitted by the @sablier/v2-periphery
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.
Airdrops work in tandem with vesting as Merkle distributions will produce new lockup streams. Be sure to check out that part of the docs too.
Since The Graph has sunset their Hosted Service, we've transitioned our subgraphs to either the Studio or The Decentralized Network. See the supported networks and our endpoints below.
Endpoints
Chain | Explorer | Studio1 | Decentralized Network2 |
---|---|---|---|
Ethereum | sablier-v2-ms | Studio | De. Network |
Arbitrum | sablier-v2-ms-arbitrum | Studio | De. Network |
Arbitrum Sepolia | sablier-v2-ms-arbitrum-sepolia | Studio | De. Network |
Avalanche | sablier-v2-ms-avalanche | Studio | De. Network |
Base | sablier-v2-ms-base | Studio | De. Network |
Blast | sablier-v2-ms-blast | Studio | De. Network |
BNB Chain | sablier-v2-ms-bsc | Studio | De. Network |
Chiliz Chain | sablier-v2-ms-chiliz | Studio | De. Network |
Gnosis | sablier-v2-ms-gnosis | Studio | De. Network |
Lightlink | sablier-v2-ms-lightlink* | N/A | Lightlink Node* |
Optimism | sablier-v2-ms-optimism | Studio | De. Network |
Optimism Sepolia | sablier-v2-ms-optimism-sepolia | Studio | De. Network |
Polygon | sablier-v2-ms-polygon | Studio | De. Network |
Scroll | sablier-v2-ms-scroll | Studio | De. Network |
Sepolia | sablier-v2-ms-sepolia | Studio | De. Network |
zkSync | sablier-v2-ms-zksync | Studio | De. Network |
Code
Envio
This indexers tracks the events emitted by the @sablier/v2-periphery
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.
While subgraphs are chain-tethered (one subgraph endpoint per chain), Envio indexes all chains within the same deployment. The data from all of chains that Sablier is deployed on can be queried from a single endpoint.
Endpoints
Chain | Endpoint on the Hosted Network |
---|---|
All-Networks3 | https://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.
Code
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.
Endpoints
Host | Endpoint |
---|---|
Sablier | https://sablier-merkle-api.vercel.app |
Code
Footnotes
-
The Graph's Studio endpoints are considered for testing purposes and may be rate-limited ↩
-
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 ↩ -
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
). ↩