Select Git revision
indexer-queries.graphql

Hugo Trentesaux authored
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
}
}