API function: Current Block ID

Front Page Forums Development API function: Current Block ID

This topic contains 6 replies, has 2 voices, and was last updated by  Ross 1 year, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #5336 Reply


    Hi, every time I call the API function for getting the current block ID, it returns the same value, 282574.

    I thought this would return the most recently created block, i.e. as of right now, 317435. It’s like it is stuck and not increasing (block 282574 is from 4th January), surely it should increase every 30 seconds?

    Am I assuming the wrong thing about this function or is it not working correctly?


    #5340 Reply


    Hi Ross,

    Thanks for alerting us to this, there definitely seems to be a problem. We’ll take a look at this and try to solve the issue asap.


    #5342 Reply


    If JSECoin is a success, I’ll buy a haircut to Dave, lol!

    #5343 Reply


    Ha ha, thanks Glemiere 🙂

    #5348 Reply


    I assume you’re still working on this, but if it helps it does seem to be periodically updating now, but still lags a few hours behind the actual current block. It is now the same day at least but for example I’m currently getting block 323218, which is approx. 6 hours ago.

    #5377 Reply

    JSE Admin

    Hi just an update that this should now be fixed. It was caused when we removed the global listener for the currentBlockID variable and didn’t update the API accordingly. It’s now fixed and providing the real-time blockID.

    #5387 Reply


    That’s great, thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: API function: Current Block ID
Your information: