Reporting With Telliot
Learn how to automatically report data using the command line tool.
Last updated
Learn how to automatically report data using the command line tool.
Last updated
It's really simple to report data with Telliot.
First, make sure you're in python's virtual environment (venv)
:
Everytime you run Telliot or DVM you need to enter this virtual environment. To enter it, go to telliot-feeds
folder and run source venv/bin/activate
. To exit it, run deactivate
.
Now, confirm you have at least the minimum current stake amount of FETCH in your reporter's wallet address and run the command below to report a median spot price for PLS/USD.
You can check the current minimum stake amount in Fetch Dashboard, top left of the page!
telliot report
is the base command to submit reports. -a
is the option where you declare the acc name for the wallet you want to use. -qt
is the query tag you want to report.
After running the above, Telliot will: Display some detailed info about contracts and where it is going to try to report, ask for your acc password, try to stake if you don't have the minimum stake amount and try to submit the report. That's it!
Congratulations you submitted your first report! 🎉
Below are the detailed information of what happens in the process:
Telliot will automatically calculate the current min stake amount and try to stake it by asking you to confirm your password again to submit a deposit transaction.
After that it will calculate the PLS/USD price using its sources and submit the median price.
After staking it calculates the PLS/USD price and submits it on chain. It will keep trying to report again after 7 seconds by default. To stop it, press ctrl + c
.
It will also display an approximate time for when you'll be able to submit a report again, based on the current min stake amount in the contract and your deposited stake amount.
Remember: It will keep trying to report to the same query tag unless you stop Telliot by pressing ctrl + c
.