Bitcoin Forum
April 23, 2024, 10:08:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Return address on a transaction  (Read 2048 times)
bittycoin (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
August 15, 2011, 12:39:52 PM
 #1

Sorry if this is a dumb question, but how can I use the JSON-RPC to get a transaction's "return address"?  If I need to refund bitcoin, how can I get that address?

Many thanks!

"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713910129
Hero Member
*
Offline Offline

Posts: 1713910129

View Profile Personal Message (Offline)

Ignore
1713910129
Reply with quote  #2

1713910129
Report to moderator
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
August 15, 2011, 12:43:05 PM
 #2

There really isn't one. The only safe way is to get the sender to tell you where he wants the coins returned. There are many ways a person may send you coins from an address on which he cannot receive coins.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
bittycoin (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
August 15, 2011, 12:49:48 PM
 #3

So how do all these ponzi games and lotteries work?  They send bitcoin back to the depositor.

There's no way to get that return address with the API?

I understand that refunds won't get back to the sender when sent from an online wallet, but when sent from the client isn't there a "from" address?
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
August 15, 2011, 12:58:39 PM
 #4

I understand that refunds won't get back to the sender when sent from an online wallet, but when sent from the client isn't there a "from" address?
No, there isn't. Coins are never sent from an address, only to an address. Some of the coins in a transaction may have been claimed by particular addresses, but that is not a requirement, nor need a transaction have only one address used to claim the coins used in it. For example, I could mine a block and send your address the 50 coins I get for mining it. What's the "from" address in that case?

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
August 15, 2011, 02:02:41 PM
 #5

In most cases you can find it with blockexplorer

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!