Skip to content
Snippets Groups Projects
indexer-queries.graphql 1.44 KiB
Newer Older
query IdentityNameByIndex($index: Int!) {
  identity(where: { index: { _eq: $index } }) {
query NamesByIndexes($indexes: [Int!]!) {
  identity(where: { index: { _in: $indexes } }) {
query IdentityInfo($index: Int!) {
  identity(where: { index: { _eq: $index } }) {
    certIssued(orderBy: { expireOn: DESC }, where: { isActive: { _eq: true } }) {
    certReceived(orderBy: { expireOn: DESC }, where: { isActive: { _eq: true } }) {
    smith {
      smithStatus
      smithCertIssued(orderBy: { createdOn: DESC }) {
        receiver {
          identity {
            name
          }
        }
      smithCertReceived(orderBy: { createdOn: DESC }) {
        issuer {
          identity {
            name
          }
        }
query IdentityNameByPubkey($pubkey: String!) {
  identity(where: { account: { id: { _eq: $pubkey } } }) {
query WasIdentityNameByPubkey($pubkey: String!) {
  accountByPk(id: $pubkey) {
query LatestBlock {
  block(limit: 1, orderBy: { height: DESC }) {
    height
    hash
  }
}

query BlockByNumber($number: Int!) {
  block(where: { height: { _eq: $number } }) {
  block(where: { height: { _eq: 0 } }) {