Clique Docs
  • What Is Clique
    • TEE Network
    • Compute Coordination Network
  • Build with Clique
    • Clique Application Structure
    • Clique CLI
      • Installation
      • Develop Task
      • Build Task
      • Test Task
      • Deploy Task
    • Clique Client SDK
    • Smart Contract SDK
      • Smart Contract Integration
      • Clique Official Tasks
  • References
    • Clique Manifest
    • Clique Query
    • Verification
  • Sample Task Tutorials
    • Data Attestation
    • Social Verification
      • Github
      • Twitter
    • Making Arbitrary TLS Calls (TLS Oracle)
    • Custom Executor
  • Toolchain
    • Clique Pipelines SDK
    • Clique Attestation SDK
      • Attestation Protocols
      • Reading Attestations On-chain
      • Reading Attestations Off-Chain
      • What are Attestors ?
        • Data Sources
    • Clique Browser Extension
  • FAQ
  • Glossaries
  • Socials
Powered by GitBook
On this page
  1. Toolchain
  2. Clique Attestation SDK
  3. What are Attestors ?

Data Sources

Clique Attestors des use Data Sources to fetch user data as the first process of issuing attestations on chain.

Providing a data source requires setting up an API endpoint that returns user data in JSON format. The Issuer Node can then process the JSON before issuing the attestations onchain.

Providing a Data Source

  1. Begin by establishing an API endpoint that utilizes the GET method.

  2. Ensure that the endpoint includes a mandatory query parameter named "address," which is used to specify the user data to be retrieved.

  3. Add an optional query parameter, "authToken," which serves as an authentication token to provide special authorized access for cases where the data should not be publicly accessible.

With these steps, you will set up a secure and functional API endpoint to serve user-specific data.

GET METHOD
https://clique.test.api?address={userAddress}?authToken{authenticationToken
{
  "code": 200,
  "msg": "success",
  "timestamp": "2024-01-25T12:00:00Z",
  "data": [
    {
      "fieldName": "exampleField1",
      "value": 123,
      "valueType": "integer"
    },
    {
      "fieldName": "exampleField2",
      "value": true,
      "valueType": "bool"
    },
    {
      "fieldName": "exampleField3",
      "value": "exampleString",
      "valueType": "string"
    }
    // ... additional objects can be added here
  ]
}
PreviousWhat are Attestors ?NextClique Browser Extension

Last updated 11 months ago