Aura Subgraphs

The Aura Subgraph indexes data on the Aura smart contracts with a GraphQL interface. It updates data in response to function calls and contract events to maintain data on the Booster, Pools, AuraLocker etc, to power front-end apps and integrations.

Curren Versions

Deprecated Versions

GraphQL Schema

The schema of GraphQL elements available is defined in schema.

The data included in this subgraph data layer is the data that is most applicable to the front-end. It aims at the very least to keep track of all the resources Account and keep track of basic pool data and AuraLocker

Examples

Get. the balance of an account at a given block

Note: account address is case sensitve, search with lowercase see example

query accountData($accountAddress: String!, $blockNumber: Int!) {
  accounts(where: {id: $accountAddress}, block: {number: $blockNumber}) {
    id
    auraLockerAccount {
      balanceLocked
      balanceNextUnlockIndex
      delegateUpdatedAt
      id
      userLocksLength
      account {
        id
        poolAccounts(where: {}) {
          id
          pool {
            id
            totalStaked
            totalSupply
          }
        }
      }
    }
  }
}

Last updated