Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (29 loc) · 1.05 KB

File metadata and controls

42 lines (29 loc) · 1.05 KB

Litentry Graphql Caching Server

Getting started

yarn start

For Javascript applications, please use Litentry SDK to interact with Server! we have already wrapped the function there

Documentation

Query types

  type Record {
    ${recordKey}: String
  }

  type Query {
    registerIdentity(identityId: String): String
    determineAddress(identityId: String): String
    addData(identityId: String, data: String): String
    addDataAddress(address: String, data: String): String
    getData(identityId: String): [Record]
  }

Example for query playgroundRecord data of certain identity

https://graphql.litentry.com:4000/graphql?query={getData(identityId:"0x992c710c7fba11ccd22a2fbfec1af6ea85d488807e63e10cbbd16256fcf95752"){playgroundRecord}}

query IPFS address of certain identity

https://graphql.litentry.com:4000/graphql?query={determineAddress(identityId:"0x992c710c7fba11ccd22a2fbfec1af6ea85d488807e63e10cbbd16256fcf95752")}
``