Skip to content

Commit 30b56c5

Browse files
feat: attestation indexer (#49)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new section on "Attestation Indexer" in the documentation, detailing its functionality and usage with GraphQL API. - Provided guidance on querying attestations by various parameters and setup requirements for both permissioned and public chains. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 4902199 commit 30b56c5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/using-platform/11_middleware.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,17 @@ export async function waitForTransactionReceipt(transactionHash: string) {
270270
The portal exposes some general purpose APIs for transactions. This could be used for example to display transactions which are pending or processed in your UI. Both REST and GraphQL offer this functionality.
271271

272272
![Transactions API](../../static/img/using-the-platform/scp-transactions-api.png)
273+
274+
## Attestation Indexer
275+
276+
The Attestation Indexer is a powerful tool that allows you to index and search attestations in a highly efficient manner. It provides a simple and intuitive GraphQL API for querying attestations based on various parameters such as the attestation type, the subject, the issuer, and more.
277+
278+
When setting up a new middleware, you'll need to adjust the Attestation Indexer based on your requirements. For permissioned chains, this involves deploying your own attestation and schema registry contracts and inputting the appropriate addresses. For public chains, the addresses will be pre-filled with publicly available ones if they exist, but you can modify them to different addresses if necessary.
279+
280+
![Attestations](../../static/img/using-the-platform/eas-indexer.png)
281+
282+
### GraphQL
283+
284+
The Attestation Indexer's GraphQL API provides the capability to execute intricate queries on attestations. It allows for filtering based on attributes such as type, issuer, and subject, enabling the retrieval of specific attestations or sets of attestations that satisfy particular conditions.
285+
286+
![GraphQL](../../static/img/using-the-platform/eas-graphql.png)
272 KB
Loading
241 KB
Loading

0 commit comments

Comments
 (0)