Skip to content
Snippets Groups Projects
indexer-queries.graphql 1.35 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 } }
    ) {
    smithCertIssued(orderBy: { createdOn: DESC }) {
    smithCertReceived(orderBy: { createdOn: DESC }) {
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 } }) {