Subgraphs

Subgraphs

subgraphs

contracts-subgraphs

Schema

Our subgraph schema is composed of the following entities:

  • DAOs
  • Proposals
  • Votes
  • Members
  • Rage Quits
  • Shamans
  • Records
  • Vaults
  • Event Transactions

Explorers and API Endpoints*

* Some URLs require an api-key in the path

Mainnet

Goerli

Sepolia

Gnosis Chain

Polygon

Arbitrum

Optimism

Base

  • API: https://api.studio.thegraph.com/query/36740/daohaus-v3-base/version/latest

Example Queries

DAO

Get a specific DAO with it's profile record

{
  dao(id: "0x0daoaddress") {
    id
    createdAt
    profile: records(
      first: 1
      orderBy: createdAt
      orderDirection: desc
      where: { table: "daoProfile" }
    ) {
      createdAt
      createdBy
      contentType
      content
    }
  }
}

Get a list of DAOs

{
  daos(first: 5, orderBy: createdAt, orderDirection: desc) {
    id
    createdAt
  }
}

Members

Get a list of members for a DAO

{
  members(where: { dao: "0x0daoaddress" }) {
    id
    createdAt
  }
}

Proposals

Get a list of proposals with it's votes for a DAO

{
  proposals(where: { dao: "0x0daoaddress" }) {
    id
    yesVotes
    noVotes
    yesBalance
    noBalance
    createdAt
    votes {
      id
      balance
    }
  }
}