@unirep/subgraph
The subgraph is used to query data from Unirep smart contract.
đŊ Compile
đŧ Deploy
To deploy, you'll need your auth token from thegraph dashboard.
graph auth --product hosted-service <AUTH_TOKEN_HERE>
Then run
đģ Demo
The subgraph is presently deployed here.
This query
{
userEntities(first: 5) {
id
createdAt
identityCommitment
attesterId
}
reputationEntities(first: 5) {
id
createdAt
posRep
negRep
}
}
will return this as result
{
"data": {
"userEntities": [
{
"id": "0x15d76961f7f9ed383e132add82257458d590ef55",
"createdAt": "1649565733",
"identityCommitment": "18926337200484736318947765217640540000000000000000000000000000000000000000000",
"attesterId": "1"
}
],
"reputationEntities": []
}
}
đ¯ Contributing
Contributions are always welcome! See CONTRIBUTING.md for ways to get started.
Please adhere to this Unirep's code of conduct.
Last updated
Was this helpful?