Bitcoin Forum
May 12, 2024, 04:25:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can someone explain me a automatically payout system  (Read 1059 times)
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 02:20:19 AM
 #1

Hello,
Can someone please explain me how a automatically payout system works?
Example site: http://satoshidice.com
Winner will receive theyr winning automatically paid out to theyr senders adress

Thx alot

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
1715487952
Hero Member
*
Offline Offline

Posts: 1715487952

View Profile Personal Message (Offline)

Ignore
1715487952
Reply with quote  #2

1715487952
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715487952
Hero Member
*
Offline Offline

Posts: 1715487952

View Profile Personal Message (Offline)

Ignore
1715487952
Reply with quote  #2

1715487952
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
June 04, 2013, 02:36:08 AM
 #2

Winner will receive theyr winning automatically paid out to theyr senders adress

That's because SatoshiDICE has a restriction that any wagers sent from a hosted (shared) E-Wallet are lost (or, more specifically, the winnings will be paid just that they go to someone else and not to the person who sent the wager payment).

This is because the Bitcoin protocol doesn't have the concept of a Sender's address.

Bitcoin has INPUTs and OUTPUTs.

So SatoshiDICE is grabbing from the wager transaction the INPUT (or choosing one of the INPUTs if there are multiple that funded the wager payment) and using that as the Bitcoin address to send the funds to on the payout transaction.

And they'll always use the OUTPUT from the wager transaction as one of the INPUTs in the return payout such that if the wager never confirms (or is double spent) then the payout transaction will never confirm either.

So they don't have payouts that will confirm on wager payments that did not confirm.

On the backend they use a customize version of BitcoinJ to perform the payments, reportedly.

Unichange.me

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


Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 03:00:05 AM
 #3

Thx alot, i asked because i want to make (with help from a web designer + programmer) a little game where winnings should be paid automatically to the players adress he send his bet from.
Any ideas how to make this the easy way?

Thx alot

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
June 04, 2013, 06:14:22 AM
 #4

Thx alot, i asked because i want to make (with help from a web designer + programmer) a little game where winnings should be paid automatically to the players adress he send his bet from.
Any ideas how to make this the easy way?

Thx alot
This is a BAD IDEA.

It would be a MUCH BETTER IDEA to have your website request from the player an address where they would like the bitcoins sent.
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 06:32:14 AM
 #5

Why?
I wanted to provide ONE address where all player can send money to.
Winnings should be automatically paid out to the senders adress.

Thx alot

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
June 04, 2013, 07:36:33 AM
 #6

There are many situations where the sender does not control the address that the bitcoins are sent from.  If you send back to that address, then the sender will not receive them.

You can provide a single address to receive the money if you want (although I'd use a new address for each transaction if I was offering the service), but you should ask the user to provide an address where they want to receive their winnings.
CoinBomb
Full Member
***
Offline Offline

Activity: 179
Merit: 100



View Profile WWW
June 04, 2013, 07:47:47 AM
 #7

take the TX of the payments in, get the outputs. create a new transaction chaining that output (as an input) to a new transaction.

the bitcoind functions you'll need to look at revolve around raw transactions. (get, create, sign, send)

Promote our site for no risk BTC / LTC profit! 1% gross profit, LTC/BTC payments weekly. Click through for more details.
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 07:59:20 AM
 #8

Ok, but i specifically point out that the address the sender sends money from MUST be able to receive payments, wouldnt that solve the problem?

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 04, 2013, 08:04:49 AM
 #9

Ok, but i specifically point out that the address the sender sends money from MUST be able to receive payments, wouldnt that solve the problem?

If the user doesn't understand how Bitcoin works it won't but if you are dead keen on doing this then I don't expect anyone here will be able to talk you out of it.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 08:17:05 AM
 #10

;-) thx alot!
A last question, hope i can explain it understandable (poor englisch)

AS mentioned i want to create a little game (with the help of a web designer/programmer)
-) Around 10k payout transfers to winners

How to handle that if a THIRD PARTY is involveved?
He would need the private key (which i dont want to give away) for automatism payout process
10k transfers are to much to manually ...

Any suggestions?

Thx 1000 times

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 08:34:34 AM
 #11

Quote
If the user doesn't understand how Bitcoin works
Then he also will not understand why he has to send coins to a adress provided on the page (how to receive winnings), or am i false?

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 04, 2013, 08:37:01 AM
 #12

Then he also will not understand why he has to send coins to a adress provided on the page (how to receive winnings), or am i false?

People can "drive a car" without even knowing what kind of fuel its engine uses - can't they?

(i.e. just because someone might not know about whether the wallet they are using can accept payments back to the UTXO addresses being used in a tx doesn't mean that they don't know how to *send BTC* to an address)

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 09:02:34 AM
 #13

Ok, so you would advice providing multiple adresses like a bulk wallet, each for every player/transaction?
Thx alot

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 04, 2013, 09:15:45 AM
 #14

Ok, so you would advice providing multiple adresses like a bulk wallet, each for every player/transaction?

I guess it really depends upon how you want your game to *work* in regards to the user experience - it doesn't seem like much to ask for a "payout" address (*per session* if not *per account*) making it then possible for people to use your game even with hosted wallets (or perhaps make it optional with a warning that if you *don't* provide a *payout* address then the payout may go to someone else if you are using a hosted wallet).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 09:43:18 AM
 #15

Overall there will be exactly 10k single payouts, then the game is over
Im simply looking for the easiest way to realize that in an automatically way.

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
Markus11 (OP)
Sr. Member
****
Offline Offline

Activity: 325
Merit: 250


View Profile
June 04, 2013, 03:34:21 PM
 #16

*push

IOTA - Donations are welcome:
BZOQCWBWUXBMQFNJ9VKIXSLUAIYSDHMZTILQQWBEMCWAIQITXT9HBUHLJGXU9OYKWJTTUAJMOZECPFB UWKNUXIMUZ9
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!