Skip to content
Snippets Groups Projects
indexer-queries.graphql 568 B
Newer Older
query IdentityByIndex($index: Int!) {
  identities(where: {index_eq: $index}) {
    account {
      id
    }
query IdentityByName($name: String!) {
  identities(where: {name_eq: $name}) {
    account {
      id
    }
  }
}

query IdentityByPubkey($pubkey: String!) {
  identities(where: {account: {id_eq: $pubkey}}) {
    account {
      id
    }
  }
}

query LatestBlock {
  blocks(limit: 1, orderBy: height_DESC) {
    height
  blocks(where: {height_eq: 0}) {