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. Sample Task Tutorials

Data Attestation

Clique provides various on-chain historical data sources. Check the following list to find what you need. For more information, please refer to a complete toolchain SDK here at Clique Attestation SDK.

List of Data Sources

  • [arbitrum one]

  • [ethereum mainnet]

Example

A more complex example pasted here:

name = "clique_arbitrumInfo"
spec-version = "1"
type = "Schema"

proof-type = ["TEE"]

[input]
address = { type = "string" }

[output]
createdBlock = { type = "u256", ref = "$tasks.clique_arbitrumCreatedBlock.data" }
lastActiveBlock = { type = "u256", ref = "$tasks.clique_arbitrumLastActiveBlock.data"}

[[tasks]]
name = "clique_arbitrumCreatedBlock"
proof-preference = "TEE"
[[tasks.input]]
address = { ref = "$input.address" }

[[tasks]]
name = "clique_arbitrumLastActiveBlock"
proof-preference = "TEE"
[[tasks.input]]
address = { ref = "$input.address" }

PreviousVerificationNextSocial Verification

Last updated 8 months ago

In this example, we create a schema (phantom task) which includes two tasks -- , , and reconstruct their outputs into the struct that we want.

clique_arbitrumCreatedBlock
clique_arbitrumLastActiveBlock