Skip to content
Snippets Groups Projects
Select Git revision
  • cbe4cd67c8ee734dee9d3d2f9d1c4908aee4a0ba
  • master default protected
  • elois-ci-refactor protected
  • gtest
  • hugo/gtest
  • json-output
  • nostr
  • 48-error-base-58-requirement-is-violated
  • no-rename
  • hugo/tx-comments
  • poka/dev
  • hugo/dev
  • tuxmain/mail
  • test-gtest
  • 0.4.3-gtest-RC1
  • 0.4.3-RC2
  • 0.4.3-RC1
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.17
  • 0.2.16
  • 0.2.15
  • 0.2.14
  • 0.2.13
  • 0.2.12
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
33 results

indexer-queries.graphql

Blame
  • indexer-queries.graphql 1.26 KiB
    query IdentityNameByIndex($index: Int!) {
      identities(where: { index_eq: $index }) {
        name
      }
    }
    
    query NamesByIndexes($idtyids: [Int!]) {
      identities(where: {index_in: $idtyids}) {
        index
        name
      }
    }
    
    query IdentityInfo($index: Int!) {
      identities(where: { index_eq: $index }) {
        name
        certIssued(orderBy: expireOn_DESC, where: { isActive_eq: true }) {
          receiver {
            name
          }
        }
        certReceived(orderBy: expireOn_DESC, where: { isActive_eq: true }) {
          issuer {
            name
          }
        }
        linkedAccount {
          id
        }
        smithCertIssued(orderBy: createdOn_DESC) {
          receiver {
            name
          }
        }
        smithCertReceived(orderBy: createdOn_DESC) {
          issuer {
            name
          }
        }
      }
    }
    
    query IdentityNameByPubkey($pubkey: String!) {
      identities(where: { account: { id_eq: $pubkey } }) {
        name
      }
    }
    
    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
      }
    }
    
    query GenesisHash {
      blocks(where: { height_eq: 0 }) {
        hash
      }
    }