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...getoriginsAny obvious mistakes I made there?
Regards!
Jan
Published at
2023-06-07 02:35:07Event JSON
{
"id": "deb60f90ed0ec7755644a8578519aab710dfa8502632b320270819d3eb19b18e",
"pubkey": "afb2dfc96bfe44c3ee8de2048adba7c222ff46515aae0adcf3c1ba22c37483b8",
"created_at": 1686105307,
"kind": 1,
"tags": [
[
"e",
"30f32a4839f3515f22b5206d3110e202b851ce295fc65c5314c19fc43658750b",
"",
"root"
],
[
"e",
"5635cdd07384b9b35c8b6f0ca97d7079bc739ff253d78dc516a73e904c89f6e1",
"",
"reply"
],
[
"p",
"afb2dfc96bfe44c3ee8de2048adba7c222ff46515aae0adcf3c1ba22c37483b8"
]
],
"content": "📅 Original date posted:2011-10-27\n🗒️ 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'.\n📝 Original message:Am Mo, 24.10.2011, 16:55, schrieb Gavin Andresen:\n\u003e If you assume the client has all previous transactions, then you could\n\u003e get the transaction input's prevout (from the memory pool or disk) and\n\u003e then ExtractAddress() from it.\n\nI now created a patch based on this idea. To avoid slowing down\nlisttransactions or gettransaction, I put it in a separate RPC\ncall 'getorigins'. This is the patch:\n\nhttps://github.com/javgh/bitcoin/compare/bfa4600a93...getorigins\n\nAny obvious mistakes I made there?\n\nRegards!\nJan",
"sig": "c69bc670aa7766157ef1989ac4815a40ae32ea49ff910ebf8f4636ec8cd789c18eec77d35f7005ae753ac974a72eb28553c01a1e4432346c12ca369bf6a3c804"
}