How to extract the list of attestations UIDs of a recipient using EAS-SDK

Making use of Indexer

const { Indexer } = require('@ethereum-attestation-service/eas-sdk/dist/indexer');

How can I extract all attestations from a schema:

indexerObj.getSchemaAttestationUIDs(options)
  .then((transaction) => {
    console.log('transaction',transaction);
  })
  .catch((error) => {
    console.error(error);
  });

Because what I get is:

transaction Result(0) []
1 Like

@frankastro Attestations are not indexed by default by the indexer for efficiency purposes. Anyone can call the indexAttestation(UID) function of the indexer after which that attestation will be available. You can also do this in batches.

1 Like