Main Menu

How to play a Lottery Ticket

Started by muse-umum, May 23, 2014, 02:28:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FreeTrade

Okay - I checked in a fix.

Note with this method, there is a small risk. If sendmany finds inputs exactly equal to the outputs, there won't be a change output, and the ticket won't be valid. The GUI includes a check for this, but with sendmany you're on your own with that.
"People should be more sophisticated? How are you gonna get that done?" - Jerry Seinfeld reply to Bill Maher

tonyk

Quote from: FreeTrade on May 23, 2014, 04:05:03 PM
The QT GUI has a panel where the numbers can be selected and ticket played, however the transaction is very straightforward to create so I'd hope to see other interfaces emerge for it too.

A ticket is simply a transaction of a specific format.

It must have 8 outputs.

The first six contain the numbers played, in satoshi, the seventh contains the stake.

The address for the first 7 inputs must be the same - LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn

The eight must be a change address. The prize is sent to the change address.

example
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 1
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 2
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 3
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 4
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 5
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 6
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 1000
LeYn5jtB4xuZGCBzzaSsszZEUvJNPkvHFR 500

Be careful not to play a ticket without a change transaction - it is not a valid ticket.

Note: Updated 16/07/2014 with latest information



'sendmany' gives me:
Invalid parameter, duplicated address: LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn (code -8)

Any solutions?
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Simeon II

Quote from: jae208 on July 15, 2014, 08:43:30 PM
how often are prizes awarded? once a day?

about every 3 min. (theoretically)
[url=http://letstalkbitcoin.com?ref=dbb10f76]LTBcoin - The future of mining! Can be mined using Tapatalk![/url]

jae208

how often are prizes awarded? once a day?
[url="http://bitsharestutorials.com"]http://bitsharestutorials.com[/url] A work in progress
Subscribe to the Youtube Channel
[url="https://www.youtube.com/user/BitsharesTutorials"]https://www.youtube.com/user/BitsharesTutorials[/url]

Simeon II

Thanks!

Excuse my possibly stupid question, buy I send the above transaction with which command :
sendrawtransaction ?
[url=http://letstalkbitcoin.com?ref=dbb10f76]LTBcoin - The future of mining! Can be mined using Tapatalk![/url]

FreeTrade

okay, post above updated with up to date information.
"People should be more sophisticated? How are you gonna get that done?" - Jerry Seinfeld reply to Bill Maher

Simeon II


Please give example how to send the transaction directly... this GUI, selecting one number at a time is annoying.
[url=http://letstalkbitcoin.com?ref=dbb10f76]LTBcoin - The future of mining! Can be mined using Tapatalk![/url]

FreeTrade

#2
The QT GUI has a panel where the numbers can be selected and ticket played, however the transaction is very straightforward to create so I'd hope to see other interfaces emerge for it too.

A ticket is simply a transaction of a specific format.

It must have 8 outputs.

The first six contain the numbers played, in satoshi, the seventh contains the stake.

The address for the first 7 inputs must be the same - LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn

The eight must be a change address. The prize is sent to the change address.

example
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 1
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 2
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 3
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 4
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 5
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 6
LTSLTSLTSLTSLTSLTSLTSLTSLTSLUWUscn 1000
LeYn5jtB4xuZGCBzzaSsszZEUvJNPkvHFR 500

Be careful not to play a ticket without a change transaction - it is not a valid ticket.

Note: Updated 16/07/2014 with latest information
"People should be more sophisticated? How are you gonna get that done?" - Jerry Seinfeld reply to Bill Maher

muse-umum

 +5% +5%

How does the user input the six numbers ?