After your Goldsky indexer is live, you can begin querying contract events using standard GraphQL syntax. Below is an example that fetches the last five Transfer events:
{
transfers(first: 5, orderBy: timestamp, orderDirection: desc) {
id
from
to
value
timestamp
}
}- Render user transaction history on profile pages
- Display leaderboards based on contract interactions
- Monitor token minting, burning, and reward distributions
You can test queries using:
- Goldsky Studio Playground
- Your app frontend (React, Next.js, etc.)
- GraphQL clients like Apollo, URQL, or Axios wrappers
Define and query custom business logic entities such as:
PredictionsMatchResultsTrophiesGroups
Goldsky gives you full flexibility to tailor the schema to your use case.