Author

Topic: Can someone explain me a automatically payout system (Read 1059 times)

sr. member
Activity: 325
Merit: 250
sr. member
Activity: 325
Merit: 250
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.
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
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).
sr. member
Activity: 325
Merit: 250
Ok, so you would advice providing multiple adresses like a bulk wallet, each for every player/transaction?
Thx alot
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
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)
sr. member
Activity: 325
Merit: 250
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?
sr. member
Activity: 325
Merit: 250
;-) 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
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
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.
sr. member
Activity: 325
Merit: 250
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?
full member
Activity: 179
Merit: 100
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)
legendary
Activity: 3388
Merit: 4615
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.
sr. member
Activity: 325
Merit: 250
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
legendary
Activity: 3388
Merit: 4615
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.
sr. member
Activity: 325
Merit: 250
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
legendary
Activity: 2506
Merit: 1010
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.
sr. member
Activity: 325
Merit: 250
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
Jump to: