anyone that's used bdk, is there a programmatic way of building descriptors to use with a bdk wallet that isn't just building up a string? i'm sure there is one. i just can't seem to figure it out. #btc #devs #bdk
Login to reply
Replies (3)
nostr:npub1ke470rdgnxg4gjs9cw3tv0dp690wl68f5xak5smflpsksedadd7qtf8jfm
nostr:nprofile1qythwumn8ghj7cnfw33k76twv4ezuum0vd5kzmp0qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcqyrczjdgg704eumlfnsha3wnflazxy9589gke7euhn0aymw9nz4vqv69yckf great question, we have pre-canned descriptor templates:
https://docs.rs/bdk_wallet/latest/bdk_wallet/descriptor/template/index.html
Or check out the bdk_wallet descriptor macros. These let you build your descriptors programmatically and is what we use for creating the above templates.
https://docs.rs/bdk_wallet/latest/bdk_wallet/macro.descriptor.html
absolute 🔥. was looking for something like this yesterday and totally missed it. 🙏