Skip to main content

Unlock Subgraph Introduction

Unlock has a GraphQL API Endpoint hosted by The Graph called a subgraph for indexing and organizing data from the Unlock smart contracts.

Unlock leverages the Graph Protocol to simplify the process of making meaningful applications leveraging the Unlock Smart Contracts and associated data.

The Graph Protocol provides an accessible GraphQL service providing useful aggregate Unlock data from the Ethereum blockchain. The links below provide a rudimentary tool to build and test your queries.

Ethereum Mainnet Hosted

Goerli (Ethereum testnet)

Arbitrum

Celo

Gnosis Chain (xDAI)

Polygon (ex-Matic)

Mumbai (Polygon testnet)

Binance Smart Chain

Optimism

Avalanche

Arbitrum

NB: As of 2022, September 29 a new version of the subgraph containing breaking changes has been deployed for all existing chains. Subsequently the subgraph URL has been updated with a -v2 suffix pointing to the new version, as previous URLs will be shut down.

Ethereum Decentralized Mainnet​

Helpful Resources​