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
I noticed one of my wallets shows that I own funds that I really don't. I identified the spending transaction and tried to import it using 'importprunedfunds' but was told:
No addresses in wallet correspond to included transaction
It turns out that 'importprunedfunds' only allows you to import txs which credit an address owned by your wallet. It won't let you import txs which spend from addresses owned by your wallet.
I made the following change and then was able to import the missing transaction:
changed the title [-]RPC importprunedfunds doesn't allo importing spending txs, only receiving txs[/-][+]RPC importprunedfunds doesn't allow importing spending txs, only receiving txs[/+]on Apr 10, 2021
I've not had much luck making PRs. I don't have enough energy to fight for them to be reviewed and merged. I hope this issue makes the problem and the solution clear enough that anyone interested can fix it.
If the "good first issue" label might help please feel free to apply it.
I have been reviewing this issue to better understand the current behavior of the importprunedfunds RPC.
From what I understand, the RPC currently allows importing receiving transactions but does not support importing spending transactions. This seems to create an incomplete wallet state representation, especially in scenarios where pruned nodes need to reconstruct historical wallet activity.
Would extending support to spending transactions require additional validation logic to ensure consistency with existing UTXO tracking and wallet state management?
I am currently exploring how wallet transaction metadata is handled internally, particularly how imported transactions are reconciled with the UTXO set.
Any clarification on the intended architectural constraints around importprunedfunds would be very helpful.
Activity
[-]RPC importprunedfunds doesn't allo importing spending txs, only receiving txs[/-][+]RPC importprunedfunds doesn't allow importing spending txs, only receiving txs[/+]jamesob commentedon Jan 3, 2022
@dooglus any interest in making a PR for this? The "good first issue" label might apply here.
dooglus commentedon Jan 4, 2022
I've not had much luck making PRs. I don't have enough energy to fight for them to be reviewed and merged. I hope this issue makes the problem and the solution clear enough that anyone interested can fix it.
If the "good first issue" label might help please feel free to apply it.
crackedhandle commentedon Jan 20, 2026
I’d like to work on this. Is anyone currently working on it?
ShirshenduR commentedon Feb 13, 2026
@dooglus Can i work on this issue and raise PR
varunnaikr commentedon Feb 14, 2026
Hi, I am a Summer of Bitcoin 2026 applicant.
I would like to work on this issue.
Can I take this up?
Mterra64 commentedon Feb 16, 2026
I have been reviewing this issue to better understand the current behavior of the
importprunedfundsRPC.From what I understand, the RPC currently allows importing receiving transactions but does not support importing spending transactions. This seems to create an incomplete wallet state representation, especially in scenarios where pruned nodes need to reconstruct historical wallet activity.
Would extending support to spending transactions require additional validation logic to ensure consistency with existing UTXO tracking and wallet state management?
I am currently exploring how wallet transaction metadata is handled internally, particularly how imported transactions are reconciled with the UTXO set.
Any clarification on the intended architectural constraints around
importprunedfundswould be very helpful.wallet: allow importprunedfunds for spending transactions
Merge bitcoin#34371: wallet: allow importprunedfunds for spending tra…
wallet: allow importprunedfunds for spending transactions