janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.48k stars 1.11k forks source link

xyzpub API - P2TR #531

Open dlabrie opened 1 year ago

dlabrie commented 1 year ago

Describe the new feature or enhancement

Have the ability to call the /api/xyzpub/:extendedPubkey to generate P2TR (Pay-to-taproot) addresses. Perhaps with a bip32Path variable? As well as have the /api/xyzpub/txids/:xyzpub endpoint return taproot transactions related to that zpub.

Additional context

Started using taproot and I can't list transactions going to my taproot wallet

bitcoinjs-lib appears to have P2TR address generation support

pointbiz commented 6 months ago

I also want this feature for the API and the UI.

I noticed there's 2 other xpubs the Capital Y Pub P2WSH in P2SH and capital Z pub P2WSH that are not supported. See here: https://jlopp.github.io/xpub-converter/

Does anyone know where some existing open source repo with derivation code for those?

Also, for taproot and how many derivations exist for taproot?