Tellor Docs
Search…
User Functions

addTip

  • the function allows the user to increase the payout for a specific request
1
addTip(uint _requestId, uint _tip)
Copied!
where: * _requestId is the ID for the value to be mined * _tip is the amount the requester is willing to pay to get on the queue

retrieveData

To read data, users will need to call these two functions:
  • the function allows the user to read the data for the given request ID and timestamp
1
retrieveData(uint _requestId, uint _timestamp)
Copied!
where:
  • _requestId -- is the request ID
  • _timestamp -- is the unix timestamp to retrieve a value from

getLastQuery

  • the function allows the user to read data from the latest request ID and timestamp mined.
1
getLastNewValue()
Copied!
This is an example of a function that would need to be added to a contract so that it can read data from an oracle contact if the contract holds Tributes:
1
contract Oracle is usingTellor {
2
...
3
function getLastNewValue() public returns(uint,bool) {
4
(value,ifRetrieve) = getLastNewValue();
5
return (value, ifRetreive);
6
...
7
}
Copied!
Last modified 10mo ago