MultiversX Tracker is Live!

How to monitor specific derived addresses from xpub

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 208 Views

I have spent many hours learning about this and now I have the answers for all my questions.

1- To maintain a real balance of how many sats I have, I needed to make calls to an API as I'm not running a full Bitcoin node. The API requires an address and gives you UTXOs for each address (Unspent transactions outputs). I had to collect all the addresses, make an API call for each address, and sum the value of all those UTXOs to obtain my real balance.

2- At the moment I haven't found a wallet that monitor a large number of addresses. In my case addresses are derived using invoice numbers as derivation index. Just imagine that a client that make a purchase in my website generates the order_id number 2567, this means that if he/she chooses to pay with Bitcoin I will use BIP84 to generate an address from my extended public key using 2567 as derivation index. So the wallet should be able to monitor thousands of addresses, and I haven't seen that so far.

3- Finally, without a wallet to monitor all the required address and spend sats received on them, I had to learn how to create PSBT by myself. That allows me to use specific addresses as inputs, outputs, define optimum fees based in the Blockchain information and also define a new address to receive change. And the most important, I can create this PSTB offline and sign it without compromising my private keys, and then just broadcast the transition hex.

All these three points may be obvious for many devs here, but I'm a newbie so I'm very happy to learn new things and answer my own questions...


Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments