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