πŸ™Subgraph

Subgraphs are our read-only APIs that subscribe to our on-chain events and construct easy-to-consume entities for clients.

The subgraphs urls are network specific and following the following template

  • API: https://api.thegraph.com/subgraphs/name/otterspace-xyz/badges-[network-name]

  • Interactive: https://thegraph.com/hosted-service/subgraph/otterspace-xyz/badges-[network-name]

Get a list of communities

{
  rafts(where: {totalSpecsCount_gt: 0}) {
    id
    metadata {
      name
    }
    totalSpecsCount
    totalBadgesCount
    specs {
      metadata {
        name
      }
      totalBadgesCount
    }
  }
}

Get active badges of a community

Get all the badge specs of a community

Get all the owners of a badge

Get badges owned by an address

Check if an address owns a certain badge

Last updated

Was this helpful?