Showing Real Time Block/Witness in Witness Page

Showing Real Time Block/Witness in Witness Page

To obtain the current witness and block, you can use the following Steem-Js code

1
2
3
4
5
6
7
steem.api.getDynamicGlobalProperties(function(err, result) {
if (err) return;
if (!result) return;
var block = result.head_block_number;
var witness = result.current_witness;
//update information: witness is producing the block
});

When we call the above function using setInterval like every 3 seconds, the block numbers are updated realtime.

image.png

Witness Ranking Table: https://steemyy.com/witness-ranking/
Chinese Version: https://steemyy.com/witness-ranking-table/


I hope this helps!

Steem On!~

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Showing Real Time Block/Witness in Witness Page’

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×