Links

Getting Started

Providing a Data Source

...

Requesting an API key

...

Reading Data

Install the SDK using the following command:
yarn add @cliqueofficial/clique-attestations-sdk
Initialise the SDK with your API key and secret:
import {
CliqueAttestationsClient,
Environment,
} from '@cliqueofficial/clique-attestations-sdk';
const apiKey = 'YOUR_API_KEY';
const apiSecret = 'YOUR_API_SECRET';
const client = new CliqueAttestationsClient({
apiKey,
apiSecret,
env: Environment.Test,
});
Use the search method to retrieve attestations and VCs based on specific parameters:
const result = await client.attestations.search({
address: '0xabb6f465a1931025c74b092d165968639dcd05c2',
network: 'Optimism',
platform: 'Twitter',
issuer: '0xd34a8775d06d41b36054d59ef2d09a79b7aa1fa2',
pagination: { pageIndex: 1, pageSize: 3 },
});
const result = await client.attestations.search({
address: 'did:polygonid:polygon:mumbai:2qE9JbBx8j7z5dxT7RwYQ83xCDZqfo6S9HIOE8xxx7',
network: 'Polygonid',
})