Tellor Docs
Search…
Reporting Data
Reporting data is the same on any network, it requires a staked reporter to run:
1
/**
2
* @dev Allows a reporter to submit a value to the oracle
3
* @param _queryId is ID of the specific data feed. Equals keccak256(_queryData) for non-legacy IDs
4
* @param _value is the value the user submits to the oracle
5
* @param _nonce is the current value count for the query id
6
* @param _queryData is the data used to fulfill the data query
7
*/
8
function submitValue(
9
bytes32 _queryId,
10
bytes calldata _value,
11
uint256 _nonce,
12
bytes memory _queryData
13
) external {
Copied!
Notes:
Once a value is submitted, the reporter is then locked from submitting again for the reporterLock time period (currently 12 hours on most networks).
For all queryId's except legacy ID's (ETH only), the _queryId must be the keccak256 hash of the _queryData. For information on how to get the queryId or how to parse the _queryData, see the 'Data feed ID's' section.
The _nonce also must be correct for a valid report. The nonce represents the number of submissions for a given query. The purpose of the _nonce is to prevent two parties from submitting at the same time for the same ID.
Copy link