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?
Understanding Walletnotify Parameters
5 replies 405 views
gwei_blockNewbie
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.
You can also run bitcoind help for more info on this.
Or even try bitcoin-qt help. Should help clarify some stuff.
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.
Alright, here's the breakdown:
%s = tx id
%b = block hash or 'unconfirmed'
%h = block height
%w = wallet name
Did I miss anything?
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.