Why Nostr? What is Njump?
2023-06-07 02:35:07
in reply to

Jan Vornberger [ARCHIVE] on Nostr: 📅 Original date posted:2011-10-27 🗒️ Summary of this message: Gavin Andresen ...

📅 Original date posted:2011-10-27
🗒️ Summary of this message: Gavin Andresen suggests using the prevout to extract the address for a transaction input. Jan creates a patch for a new RPC call 'getorigins'.
📝 Original message:Am Mo, 24.10.2011, 16:55, schrieb Gavin Andresen:
> If you assume the client has all previous transactions, then you could
> get the transaction input's prevout (from the memory pool or disk) and
> then ExtractAddress() from it.

I now created a patch based on this idea. To avoid slowing down
listtransactions or gettransaction, I put it in a separate RPC
call 'getorigins'. This is the patch:

https://github.com/javgh/bitcoin/compare/bfa4600a93...getorigins

Any obvious mistakes I made there?

Regards!
Jan
Author Public Key
npub147edljttlezv8m5dugzg4ka8cg3073j3t2hq4h8ncxaz9sm5swuq4tnsv4