No way to get source adress #3022

issue Enelar opened this issue on September 19, 2013
  1. Enelar commented at 1:23 PM on September 19, 2013: none

    I didnt found(with guys on IRC) way to get source address of incoming coins.

  2. jgarzik commented at 1:47 PM on September 19, 2013: contributor

    It's right there in the IRC channel title: there is no "from" or source address in bitcoin.

  3. jgarzik closed this on Sep 19, 2013

  4. sipa commented at 1:55 PM on September 19, 2013: member

    A bit more helpful perhaps:

    • If you need a way to distinguish incoming payments from eachother, use a separate receive address for each (using a different receive address for every transaction is a good idea in general for your and the network's privacy).
    • If you need a way to do refunds, ask an address from the customer. There are sites which rely on the "address(es) the input coins to a transactions were previously sent to", which is well defined, but not generally available, relies on address reuse, and makes assumptions about the sender software (in general, it only works if the sender himself received coins on a standard address, in a wallet that isn't shared with anyone else).
    • If you need a more automated way of dealing with this, wait for the payment protocol which will be available in an upcoming versions, which allows transactions to be negotiated directly between sender and receiver before being broadcasted on the Bitcoin network. It means you can add identities, messages and other metadata like refund addresses to transactions, without burdening the Bitcoin network with this private information.
  5. Enelar commented at 2:14 PM on September 19, 2013: none

    sipa: i need to get address of guy, who sended money. I already separated payments, i need address, to prevent manual input it on site.

  6. gmaxwell commented at 2:44 PM on September 19, 2013: contributor

    @Enelar Then you need something other than Bitcoin transactions. They do not contain a from address, as have been extensively explained to you here.

  7. Enelar commented at 2:50 PM on September 19, 2013: none

    Before, i am used blockchain.info, but right now, because of DDOS, they prevents robots work(curl). Thanks guys, for answers. One more question. Is there some problem to read all the block, and search who sended you transaction?

  8. sipa commented at 2:52 PM on September 19, 2013: member

    There exists no from address. What blockchain.info gives you, is the address the input coins to the transaction were previously sent to. As explained, this can only function as 'from' address under certain assumptions which aren't always true. Furthermore, it's bad practice.

  9. Enelar commented at 2:57 PM on September 19, 2013: none

    Well, whoa.. thanks. And, is there method to get input transaction address in original client?

  10. Bushstar referenced this in commit 2cbf726ab0 on Apr 8, 2020
  11. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me