Here is how you can check you balance on https://hive.blog using steemJS, while the Hive wallet becomes available:
NOTE:
This script does not requires a pre-existing Steemit/Hive account or any private key so it's very safe to use.
If you're the paranoid type feel free to log out, use a different browser, use incognito, etc. This script does not require authentication.
STEP 1
Open your favorite browser on any site (I strongly recommend using Brave browser for its speed and security)
and open the DevTools (
Ctrl + Shift + J on Linux/Windows and Cmd + Opt + J on Mac)
STEP 2
Open https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js (SteemJs) and copy & paste (
Ctrl + A and Ctrl + C) the javascript code displayed on the page into the Browser Console (DevTools) that you opened in the first tab.
STEP 3
- Copy & paste my script below in the Console
- Change the value of
targetAccount(first line of the script) with your account name - Press enter.
var targetAccount = 'gaottantacinque'
steem.api.setOptions({ url: 'https://api.hive.blog' });
steem.config.set('address_prefix','STM');
steem.config.set('chain_id','0000000000000000000000000000000000000000000000000000000000000000');
steem.api.getAccounts([targetAccount], (err, response) => {
const { balance, savings_balance, sbd_balance } = response[0];
console.log(err, JSON.stringify({
balance, savings_balance, sbd_balance,
}));
});
// OUTPUT:
// {"balance":"13.709 HIVE","savings_balance":"0.000 HIVE","sbd_balance":"1.136 HBD"}
Enjoy & HIVE ON! Â =]