I didnt found(with guys on IRC) way to get source address of incoming coins.
-
Enelar commented at 1:23 PM on September 19, 2013: none
-
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.
- jgarzik closed this on Sep 19, 2013
-
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.
-
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.
-
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?
-
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.
-
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?
- Bushstar referenced this in commit 2cbf726ab0 on Apr 8, 2020
- MarcoFalke locked this on Sep 8, 2021