Concepts
Guides
Build
Reference
Partner
Data
Tools
Concepts
Guides
Build
Reference
Partner
Data
Tools
  • Data And Analytics
    • Subgraph
    • Balancer Api
      • Balancer API
      • Pools - Get details including APRs
      • Pools - Swap Events
      • Pools - Top 10 Ordered by TVL
      • Pools - With TVL greater than $10k
      • Swap - Query the Smart Order Router
      • User - Get add and remove events for a pool
      • User - Get pool balances
    • Dune
      • Overview
      • Spells
      • Dashboards

# Balancer API

Balancer's API exposes data on Balancer's smart contracts accessible via graphql. The API is running as a graphql server and is deployed at https://api-v3.balancer.fiopen in new window.

Want to keep up with changes to the API?

You can subscribe to the Telegram channelopen in new window or check out the repoopen in new window to stay updated.

Queries are organized around these main domains:

  • Pools
  • Gauges
  • Events
  • Users
  • Tokens
  • Prices
  • SOR (Smart Order Router used for swaps)

One of the conventions is to use "dynamicData" for querying changing parts of the state.

Further documentation is available on the self documented api serveropen in new window.

# Examples

  • Pools - Get a v2 pool's details including APRs
  • Pools - Pools with TVL greater than $10k
  • Pools - Top 10 pools ordered by TVL
  • Pools - Get swap events for a pool
  • Swap - Query the Smart Order Router (SOR)
  • User - Get pool balances for a user
  • User - Get v2 pool add & remove events for a user

Pools - Get details including APRs

Github

  • Smart Contracts
  • SDK
  • API
  • Subgraph
  • Frontend

Developers

  • Starter kit
  • Deployment Addresses
  • Bug bounties
  • Grants
  • V2 Docs

Ecosystem

  • Explore pools
  • Create pools
  • Swap tokens
  • Get veBAL
  • Dune Dashboards

Community

  • Forum
  • Governance
  • Discord
  • Twitter
  • Youtube