Api.zilliqa.com give invalid result


#1

Hi, look to my request to API
{ “method”: “GetBlockchainInfo”, “params”: [""], “jsonrpc”:“2.0”, “id”: 1}
{“id”:1,“jsonrpc”:“2.0”,“result”:{“CurrentDSEpoch”:“59”,“CurrentMiniEpoch”:“5863”,…}

CurrentMiniEpoch = 5863
After 60s i made new request and get this:
{“id”:1,“jsonrpc”:“2.0”,“result”:{“CurrentDSEpoch”:“59”,“CurrentMiniEpoch”:“5820”,…}

In this way after 1s i made request again because new result CurrentMiniEpoch can’t be less than previous:
{“id”:1,“jsonrpc”:“2.0”,“result”:{“CurrentDSEpoch”:“59”,“CurrentMiniEpoch”:“5820”,…}

And again i get wrong result!

And after 1s i made new request and get correct result:
{“id”:1,“jsonrpc”:“2.0”,“result”:{“CurrentDSEpoch”:“59”,“CurrentMiniEpoch”:“5864”…}

Question: how that can be that API give invalid result in request???


#2

Hi there, when your query api.zilliqa.com, you are accessing one of the few nodes that are exposed to the public. If one of these node is out of sync and you happen to query that node, the result will differ from what is happening on the chain.

We are working on stabilizing the api endpoints now to try to keep it in sync at all times.


#3

How can I contact You outside of this forum? Do you use RIOT or other communicators?


#4

For developers chat, you may use the Gitter channel.

In future, you may check out the Contacts section to know which channel are for which audience.