I am using
oraclize-api to fetch and store twitter posts into a smart contract. Posts are placed into a
mapping using the twitter id as the key (i.e.
<username>/status/<id>), and the tweet text as the value.
I want my front end to display the tweet text once the oraclize
__callback function has been called, and the tweet text has been saved to the smart contract.
The options have I entertained are:
- Having a button for the user to "check the state" manually
- Doing a loop to check for a tweet text value that is not
Neither are quite that good, especially the loop if there is a problem with the Oraclize, like an out of gas error where the state will never get updated.
Is there a recommended practice for this?