Tellor Docs

Submitting Values

Reporting data requires a staked reporter to run the submitValue function:
* @dev Allows a reporter to submit a value to the oracle
* @param _queryId is ID of the specific data feed. Equals keccak256(_queryData)
* @param _value is the value the user submits to the oracle
* @param _nonce is the current value count for the query id
* @param _queryData is the data used to fulfill the data query
function submitValue(
bytes32 _queryId,
bytes calldata _value,
uint256 _nonce,
bytes memory _queryData
) external {


Once a value is submitted, the reporter is then locked from submitting again for the reporterLock time period (usually 12 hours) divided by the number of full stakes. If the stake amount is 10 TRB and a reporter has 60 TRB staked, for example, that reporter can submit once every two hours.
For all reported values, 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 Creating a Query section.
The _nonce can be either correct or 0 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 and wasting gas with no reward.