Skip to main content

Endpoints

Chains: Individual vs. Aggregated

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 the same place.

Protocol-Envio

The protocol-envio indexer mainly tracks events emitted by the @sablier/v2-core contracts. It deals with core protocol actions like creating, withdrawing, or transferring streams.

Endpoints

ChainEndpoint (Hosted Network)
All-Networks1https://indexer.bigdevenergy.link/[...]/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 V2 Envio SubgraphGithub - sablier-labs/v2-subgraphs

Merkle-Envio (Airstreams)

This subgraph tracks events emitted by the @sablier/v2-periphery contracts, specifically the Merkle Factory. It deals with airstream-specific actions like the factory creating a campaign, admin clawbacks, or users claiming streams as defined in the attached Merkle tree.

Endpoints

ChainEndpoint on the Hosted Network
All-Networkshttps://indexer.bigdevenergy.link/[...]/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 V2 protocol subgraph (The Graph)Github - sablier-labs/v2-subgraphs

Footnotes

  1. All-Networks = 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).