With above function in place, now you can easily getNotifications for any account.
Note that, I've used sagarkothari88 as account name.
You can use any account name / hive user.
It must not include @ sign.
If there is some error getting notifications, above function will simply return false.
const{client}=require("./dhive_client");const{getNotifications}=require("./helper/get_notifications");asyncfunctionmainFunction(){constaccount="sagarkothari88";constdata=awaitgetNotifications(client,account);console.log(`Notifications data - ${JSON.stringify(data)}`);}mainFunction();
I support following communities & recommend joining
Cheers,
Have a good one.
How to use @dhive/dhive library? | Ecency
🎉 HiveSuite Daily Rewards for 24-Aug-2026sagarkothari88 ·
Codeberg vs the Open source spirit: How codeberg destroyed it's reputation by trying to protect it from the exact values that make open source great.pibara ·