Tellor Functions
Available Tellor Functions
When your contract inherits the usingtellor helper contract, it has access to the following functions:
getDataAfter
getDataAfter
Retrieves the next undisputed value for a given queryId after a given timestamp
getDataBefore
getDataBefore
Finds the most recent undisputed submission for a given queryId before a specific timestamp.
It is recommended that you use this function with a buffer time when retrieving oracle values. This allows time for bad values to be disputed.
getIndexForDataAfter
getIndexForDataAfter
Returns the index of the next value reported for a given queryId after a given timestamp.
getIndexForDataBefore
getIndexForDataBefore
Returns the index of the most recent value reported for a given queryId before a given timestamp.
getMultipleValuesBefore
getMultipleValuesBefore
Returns the multiple most recent values for a given queryId before a given timestamp.
getNewValueCountbyQueryId
getNewValueCountbyQueryId
Returns the total number of values submitted for a given queryId
getReporterByTimestamp
getReporterByTimestamp
Retrieves the address of the reporter for a given queryId and timestamp.
getTimestampbyQueryIdandIndex
getTimestampbyQueryIdandIndex
Returns the timestamp at a specific index for a given queryId.
Values start at the 0 index
isInDispute
isInDispute
Determines whether a specific value with a given queryId and timestamp has been disputed
retrieveData
retrieveData
Retrieves a specific value by queryId and timestamp
Last updated