Bitcoin Forum
May 06, 2024, 08:47:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: From address  (Read 900 times)
Suushi (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
April 23, 2013, 07:47:15 PM
 #1

Hey! I couldn't find any info about this, but I'd need to get the sender's address that sent bitcoins to me using debug commandline.. is it possible? I couldn't find any functions that will display the sender's address.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715028452
Hero Member
*
Offline Offline

Posts: 1715028452

View Profile Personal Message (Offline)

Ignore
1715028452
Reply with quote  #2

1715028452
Report to moderator
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
April 23, 2013, 08:45:48 PM
 #2

Hey! I couldn't find any info about this, but I'd need to get the sender's address that sent bitcoins to me using debug commandline.. is it possible? I couldn't find any functions that will display the sender's address.

This "sender" concept has been asked and answered several times in the forum. Have you done any research?
Suushi (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
April 23, 2013, 09:29:06 PM
 #3

As you might notice from my sentence.. first few words indicated that I have researched it, but since I haven't found anything useful, I thought I'll ask for help.
And instead of asking it, it would have been very nice of you to point me to the right direction.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 24, 2013, 12:05:59 AM
Last edit: April 24, 2013, 03:58:17 AM by Stephen Gornick
 #4

As you might notice from my sentence.. first few words indicated that I have researched it, but since I haven't found anything useful, I thought I'll ask for help.
And instead of asking it, it would have been very nice of you to point me to the right direction.

The word "sender" may be confusing.   There are INPUTs and OUTPUTs in a transaction.  You are asking how to know what were the INPUTs to your transacion.

Raw transactions API will give this info.  Here's a thread on it:

As was pointed out, getrawtransaction <txid> 1    will do the decode for you.

So given a trasnsaction hashi, get the raw transaction then decode it to get the UTXOs used.

[Edit: And the typical disclaimer here ... payments from a hosted (shared) E-Wallet account will show an INPUT that is not for the same E-Wallet account as the party that sent the payment.   That's why SatoshiDICE includes the warning about only using approved clients like Bitcoin-Qt/bitcoind, Multibit, blockchain.info/wallet, etc., and to not send from an exchange or hosted (E-Wallet) services.]

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


MatthewLM
Legendary
*
Offline Offline

Activity: 1190
Merit: 1004


View Profile
April 24, 2013, 12:35:26 AM
 #5

Try using blockchain.info. http://blockchain.info/address/[YOUR_RECEIVING_ADDRESS_GOES_HERE]
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4622



View Profile
April 24, 2013, 02:31:14 AM
 #6

Bitcoin doesn't really support the concept of a "sender's address" very well at all.

If you want an address that you can use to identify a sender, you should ask them to give you an address.

Bitcoin uses a concept of unspent outputs as a source of value for transactions.  Those outputs may or may not belong to the sender, and may or may not be associated with one or more addresses.
Suushi (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
April 24, 2013, 07:53:52 AM
 #7

Hey thanks for the advice guys...

I was wondering too about satoshidice's concept.. how they got the senders address.
Also , I'm not sure right now, but blockchain.info is little bit slow..
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4622



View Profile
April 24, 2013, 11:32:07 AM
 #8

- snip -
I was wondering too about satoshidice's concept.. how they got the senders address.
- snip -

SatoshiDice is a very poor model that causes several problems for users.  It is best not to try to implement anything using that model, you are likely to frustrate many customers eventually.

That being said, you can identify the transaction outputs being spent if you use getrawtransaction, and from there you can look up each of those transaction hashes in the blockchain to determine where each output was originally sent.  These are not necessarily "sender's addresses", but in certain cases they may be addresses under the control of the sender.

I believe that SatoshiDice has written their own code for the process described.  Additionally, they may be looking up transactions received from peers as well as transactions in the blockchain so that they can respond to transactions with 0 confirmations.
CasinoBit
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
April 24, 2013, 06:29:36 PM
 #9

Not trying to sound like a douche but the last thing the community needs is a couple more poorly implemented Bitcoin casinos to stain the reputation of the rest of Bitcoin casinos, the minimum requirements for creating a Bitcoin casino are already pretty much non-existent, with highschool students starting casinos in their parents basements.

Consider how damaging it will be to the people if your casino is robbed and tens of thousands of dollars are lost, people will lose months of their lives in savings, or even worse, someone might decide to take his/her own life after his account is lost due to the coins being handled in an unprofessional manner.
Suushi (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
April 24, 2013, 07:27:08 PM
 #10

Well, thanks for your honest opinion Smiley

I'm not a high school kid.. I'm a college teacher with over 10 years of programming experience Smiley

Also what I created was for our local charity so it's all good.
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!