So if I use steemit.js with a call like steem.api.getState
how do I go about converting/updating.
This couldn't have come at a worse time for me as I'm moving house. Will probably have to put @steeming-hot out of action for a while
You are viewing a single comment's thread from:
You should first see if your app works with
<p dir="auto"><span><a href="https://developers.steem.io/tutorials-javascript/get_state_replacement_api" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://developers.steem.io/tutorials-javascript/get_state_replacement_api <p dir="auto">But the general point is, if you use their <code>getState(‘witnesses’), use <code>databaseAPI.call('get_witnesses_by_vote', ['', 10]) instead.getState
onapi.steemitdev.com
. If it does, you're good. If not, this is how to switch if you were using dsteem:
<p dir="auto">Guess I will find out next weekend :)steem.api.getState('@username/blog', function(err, result)
Hey thanks @inertia I don't think I will have to modify the code as i useWhy wait?
All you do is change the endpoint from
api.steemit.com
toapi.stemitdev.com
and make sure your scripts still work :-)So I'm guessing as long as I pull the steem.js file from the steemit cdn it should update accordingly
There are API changes coming soon. Data served will be slightly different. You can be proactive and test the new results now by using
api.stemitdev.com
or just wait untilapi.steemit.com
switches over and see if anything breaks.