How to automatically display coinbase message in bitcoind?

4 replies 305 views
Posts: 29 · Reputation: 23
#1Apr 14, 2024, 01:31 AM
block explorers usually just show either a mining pool or 'unknown' for the relayed by info. how do I set up a command in bitcoind to display that string? I'm on ubuntu 22.04. like, can't I just use 'bitcoin-cli getinfo hash' after I see an updatetip? but I'm hoping to automate this somehow, is that possible?
3 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#2Apr 14, 2024, 07:40 AM
you know, blocknotify is meant to run a script, not just a text file. If you output to a text file via blocknotify, you can tail it in your terminal to see new info. Why not just keep bitcoind running in the background? Mine’s been running since Jan 8, and I don’t even see its output.
3 Reply Quote Share
Posts: 29 · Reputation: 23
#3Apr 16, 2024, 11:01 AM
I'll give a.sh script a shot then! I just wanna see when new blocks pop up, plus I wanna grab the relayed by info too. Funny how I couldn't find anything online about this... thought I was alone in this.
3 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#4Apr 16, 2024, 12:18 PM
try to find an old version of BitBonkers. It was nice for checking new blocks back in the day.
2 Reply Quote Share
Posts: 29 · Reputation: 23
#5Apr 16, 2024, 01:41 PM
thanks for the tip, loyce! that link really cleared things up. I was messing up by using /s instead of %s and forgot to add %s when launching blocknotify.sh. lol, my bad!
4 Reply Quote Share

Related topics