Showing Real Time Block/Witness in Witness Page

in #witness-category4 years 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 ?

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

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

LOL. I don't understand your weird logic.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets on may 20th 202 at 14:00 UTC. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

@Justyy just stole 23 million Steem out of peoples wallets last night. He is nothing but a thieving pickpocketing communist bandit. Don't trust your information to him. Don't do business with him. Don't vote for him as a witness. Stop delegating steem to him.

Play stupid Games with Americans, and Win a standing army of American police officers breaking in your front door looking for every excuse to kill.
Going to be quite interesting when our Elite American law enforcement hunts his hide down. He signed his own death warrant by inviting the American police to his door, and you really don't want to be anyone near unless you enjoy watching that macabre kind of thing-and you really don't want to be associated with him either. Our police have a certain reputation for people of color that we, the congress, the president, the United nations cannot stop.

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64290.64
ETH 3155.12
USDT 1.00
SBD 3.86