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) []