You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIUC, BDK doesn't have currently any public API to fetch the scriptpubkey (or the transaction) to use in allow_shrinking. It seems like an useful function to have. People might wanna get the full transaction detail specific to an ID directly from their wallet.
Creating this issue to maintain discussion on this.
Yes that's exactly what I am looking for. Its little awkward to use list transactions, but it still can be done, and I can use that to handle breaking the situation in bdk-cli. Thanks for pointing that out.
Do you think its useful to have a public API to fetch a transaction with ID directly from the wallet? I suppose it would be a very simple function, as most of the codes to do that is available, but are private to the wallet. Only question is weather we would want it in a public API.
Activity
LLFourn commentedon Aug 27, 2021
I think what you're saying is that you can't inspect the tx to find the script pubkey of the output you want to shrink?
There is of course
list_transactionsbut you awkwardly have to filter them to find the one you're looking for. The right solution is to be able to directly query the database yourself I think.I had to add this functionality to my branch of
bdkforgun. See: https://github.com/LLFourn/gun/blob/40eddd9010e5e3e535f3e6e8cef4fafb8cd5316e/src/party/mod.rs#L208I plan for this change to make its way to main bdk eventually.
rajarshimaitra commentedon Aug 27, 2021
Yes that's exactly what I am looking for. Its little awkward to use list transactions, but it still can be done, and I can use that to handle breaking the situation in
bdk-cli. Thanks for pointing that out.Do you think its useful to have a public API to fetch a transaction with ID directly from the wallet? I suppose it would be a very simple function, as most of the codes to do that is available, but are private to the wallet. Only question is weather we would want it in a public API.
LLFourn commentedon Sep 6, 2021
@rajarshimaitra Yes I think
get_txon wallet makes sense given how the wallet api already allows inspecting the database.LLFourn commentedon Oct 19, 2021
This can be closed @notmandatory