Skip to content
Snippets Groups Projects
indexer-queries.graphql 1.26 KiB
Newer Older
query IdentityNameByIndex($index: Int!) {
  identities(where: { index_eq: $index }) {
query NamesByIndexes($indexes: [Int!]!) {
  identities(where: {index_in: $indexes}) {
    index
    name
  }
}

query IdentityInfo($index: Int!) {
  identities(where: { index_eq: $index }) {
    certIssued(orderBy: expireOn_DESC, where: { isActive_eq: true }) {
    certReceived(orderBy: expireOn_DESC, where: { isActive_eq: true }) {
    smithCertIssued(orderBy: createdOn_DESC) {
      receiver {
        name
      }
    }
    smithCertReceived(orderBy: createdOn_DESC) {
      issuer {
        name
      }
    }
query IdentityNameByPubkey($pubkey: String!) {
  identities(where: { account: { id_eq: $pubkey } }) {
query WasIdentityNameByPubkey($pubkey: String!) {
  accountById(id: $pubkey) {
    wasIdentity {
      identity {
        name
      }
    }
  }
}

query LatestBlock {
  blocks(limit: 1, orderBy: height_DESC) {
    height
    hash
  }
}

query BlockByNumber($number: Int!) {
  blocks(where: { height_eq: $number }) {
    height
    hash
  blocks(where: { height_eq: 0 }) {