Introduction
Last updated
Last updated
The Tellor system allows users to request specific pieces of data, and reporters can then submit those values. Every piece of data that is requested, reported, and retrieved within the Tellor system is associated with a Query Type, Query Data, and a specific identifier, known as the Query ID.
A Query Type is a for custom data you want to receive from the oracle. It defines the parameters of a Query that users can input for their specific requests. For example:
SpotPrice
asset
description: Asset ID (e.g. BTC)
value type: string
currency
description: Selected currency (e.g. USD)
value type: string
First check if the data is already being reported by viewing our .
Tellor data is free for anyone to read. This means that if someone else just updated the value, you can use it free of charge!
Generate a query ID for the asset/currency
pair using
Next, use that ID to to put that data on-chain.
Then retrieve the reported spot price from the oracle .
First, check in if there's already a query type that defines the data you need.
If not, you'll need to .
Once that is done you'll need to to put that data on-chain, and retrieve that data from the Tellor oracle .