Showing Real Time Block/Witness in Witness Page

in #witness-category6 days ago

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.

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

Sort:  

Just because I needed something to occupy my time, here's something similar in bash shell script for linux...

#!/bin/bash
# Take API from first command line argument.  Use steemit if none given.
STEEMAPI="${1:-https://api.steemit.com}"

show_time_block_witness()
{
   NOW=$(date)
   curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' ${STEEMAPI} \
      2>/dev/null \
      | jq -c -S '.result | {head_block_number, current_witness}' \
      | tr '[,:"{}]' ' ' \
      | ( read LBL1 BLOCK LBL2 WITNESS ; echo ${NOW}: ${BLOCK} ${WITNESS} )
}

SLEEPTIME=3
MAX=20 # Approximately 1 minute
for (( i=1; i <= ${MAX} ; i++ ))
do
   sleep ${SLEEPTIME} &
   show_time_block_witness
   wait
done

Showing Real Time Block/Witness in Witness Page

is it show error ?

If your not posting on Hive you are doing yourself a massive disservice.

stats speak for themselves.

https://steemit.com/steem/@safetony/hive-vs-steem-stats

So doctor Zhihua lay, how soon do you think the bobbies will pluck you out of your girton flat for your 6 million dollar heist? And if they don't, how soon do you think people will take justice into their own hands. Your days of scamming people are soon over.

image.png


[email protected]
[email protected]
[email protected]

what i would advice you at this point is (if you are so hating steem):

  1. leave steem, stop posting here, nobody gives a damn sh*t of what you said.
  2. go (f*ck) fork yourself if that makes you feel any better.

I always like to hear both sides, so got to ask? Do you think one person voting in all the witnesses is a good thing then? and how so?

It seems I hit a nerve.

If anyone of the real people are still here:

That is the response of a top witness. Steem is doomed.

Oh yea, I’m not leaving here until my powerdown is finished. Oh and I love the drama here.

Steem is doomed with guys like you, trying to damaging/destroying it. So yes, get your steems and just leave.

We could be here a while depending on your location. I'm still waiting to see if the 3 exchanges I can use enable deposits.

That's right if you can't win the argument start swearing at people and get 50 of your cock puppet accounts to start downvoting.

Look at how many of these fake accounts where created by your ccp controlers.

image.png

LOL. who created those accounts? And puppet accounts? do you even know the word 'trail' ?
fake accounts? how do you know they are not real? Stop telling lies.