Skip to content
Snippets Groups Projects
indexer-queries.graphql 539 B
Newer Older
query IdentityByIndex($index: Int!) {
  identity_by_pk(index: $index) {
    index
query IdentityByName($name: String!) {
  identity(where: { name: { _eq: $name } }) {
    index
    name
    pubkey
  }
}

query IdentityByPubkey($pubkey: String!) {
  identity(where: { pubkey: { _eq: $pubkey } }) {
    index
    name
    pubkey
  }
}

query LatestBlock {
  parameters(where: { key: { _eq: "last_indexed_block_number" } }) {
    value
  }

query GenesisHash {
  block(where: {number: {_eq: 0}}) {
    hash
  }
}