Aura Finance
English
English
  • 🙌Welcome
  • 📖Aura
    • What is Aura?
      • For Liquidity Providers
      • For $BAL Stakers
      • For $AURA Lockers
      • Fees
    • Governance
      • Multisig Composition
      • Multisig Rights
      • Gauge Voting
    • Security
      • Risks
    • $AURA
      • Distribution
        • Allocation Scaling Process
      • Vote Locking
  • 🛠️DEVELOPERS
    • Aura Subgraphs
    • Deployed Addresses
      • Canonical Deployment Addresses
      • Sidechain Deployment Addresses
    • Solidity API
      • AuraBalVault - Compounder
      • Sidechain Contracts
    • Building on Aura
    • Brand Guidelines
    • How To ___
      • See reward tokens / yield on Aura Pools
      • Calculate APRs from Aura pool yield
      • Calculate pool boost
      • Calculate projected APRs
      • Get Balancer LP price
      • Add extra incentives to Aura pools
    • Frequently Asked Questions
  • 🔗Links
    • Twitter
    • Discord
    • Forum
    • Github
    • Aura Finance
    • Terms and Conditions
Powered by GitBook
On this page
  • Current Versions
  • Examples
  • GraphQL Schema
  1. DEVELOPERS

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.

Current Versions

Network
Subgraph URL
Playground

Ethereum Mainnet

Arbitrum

Optimism

Gnosis

Base

Polygon

Polygon zkEVM

Avalanche

Fraxtal

Examples

Get. the balance of an account at a given block

Note: account address is case sensitve, search with lowercase

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
          }
        }
      }
    }
  }
}

GraphQL 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

query IntrospectionQuery {
  __schema {
    queryType {
      name
    }
    mutationType {
      name
    }
    subscriptionType {
      name
    }
    types {
      ...FullType
    }
    directives {
      name
      description
      locations
      args {
        ...InputValue
      }
    }
  }
}
fragment FullType on __Type {
  kind
  name
  description
  fields(includeDeprecated: true) {
    name
    description
    args {
      ...InputValue
    }
    type {
      ...TypeRef
    }
    isDeprecated
    deprecationReason
  }
  inputFields {
    ...InputValue
  }
  interfaces {
    ...TypeRef
  }
  enumValues(includeDeprecated: true) {
    name
    description
    isDeprecated
    deprecationReason
  }
  possibleTypes {
    ...TypeRef
  }
}
fragment InputValue on __InputValue {
  name
  description
  type {
    ...TypeRef
  }
  defaultValue
}
fragment TypeRef on __Type {
  kind
  name
  ofType {
    kind
    name
    ofType {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
              }
            }
          }
        }
      }
    }
  }
}
PreviousVote LockingNextDeployed Addresses

Last updated 10 months ago

The schema of GraphQL elements is the same on every Network, it's available in the docs section of the . Alternatively you can extract the whole schema with packages such as or by seding the following query:

🛠️
playground
get-graphql-schema
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-mainnet/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-arbitrum/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-optimism/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-gnosis/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-base/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-polygon/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-zkevm/api
Link
https://subgraph.satsuma-prod.com/cae76ab408ca/1xhub-ltd/aura-finance-avalanche/api
Link
https://graph.data.aura.finance/subgraphs/name/aura-finance-fraxtal
Link