Understanding Walletnotify Parameters

5 replies 405 views
nova_byteFull Member
Posts: 25 · Reputation: 755
#1Sep 12, 2018, 04:02 AM
Hey, anyone know what parameters we can use for walletnotify? I found out about a couple: %s transaction ID %w wallet name But I'm lost on others... like, what does %b and %h stand for?
7 Reply Quote Share
Posts: 185 · Reputation: 37
#2Sep 12, 2018, 12:46 PM
Actually, there's a bit more to it! Check out this link here: https://en.bitcoinwiki.org/wiki/Running_Bitcoind Just so you know, %b is for the block hash if tx is confirmed, otherwise it'll say 'unconfirmed'. And %h gives you the block height or -1 if not confirmed.
5 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#3Sep 12, 2018, 03:14 PM
You can also run bitcoind help for more info on this. Or even try bitcoin-qt help. Should help clarify some stuff.
3 Reply Quote Share
nova_byteFull Member
Posts: 25 · Reputation: 755
#4Sep 12, 2018, 06:55 PM
I thought there were more than just those four. Like, can’t we get the BTC amount too in walletnotify? That info seems pretty useful.
1 Reply Quote Share
nova_byteFull Member
Posts: 25 · Reputation: 755
#5Sep 13, 2018, 01:03 AM
Alright, here's the breakdown: %s = tx id %b = block hash or 'unconfirmed' %h = block height %w = wallet name Did I miss anything?
1 Reply Quote Share
AtomicForkFull Member
Posts: 352 · Reputation: 479
#6Sep 13, 2018, 04:02 AM
You might want to check this out: https://bitcoinwiki.org/wiki/running-bitcoin Definitely has the details you’re looking for.
0 Reply Quote Share

Related topics