Showing Real Time Block/Witness in Witness Page
To obtain the current witness and block, you can use the following Steem-Js code
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.
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
Just because I needed something to occupy my time, here's something similar in bash shell script for linux...
Nice. thank you!
Showing Real Time Block/Witness in Witness Page
is it show error ?
what error?