GhostGraph enables smart contract developers to create indexers in Solidity, which are queryable via GraphQL. These indexers typically support the data needs of decentralized applications (dApps).
This repository demonstrates the process using SuperBlurBattlerz, a protocol within the Blast ecosystem, to construct a user leaderboard.
- Clone the repository:
git clone <this repo url> - Install dependencies:
npm install - Copy the example environment variables:
cp .env.example .env - Start the application:
npm run start
- Follow the steps under 'Getting Started.'
- Replace the GhostGraph Query URL in the .env file with your own (available in GhostGraph's code editor after deploying your indexer).
- Add custom queries to your queries.graphql file.
- Generate TypeScript types and React hooks:
npm run codegen - Start the application:
npm run start
Interested in becoming an alpha tester? Sign up here
Connect with us on Telegram
