BitShares Forum

Other => Graveyard => LottoShares => Topic started by: muse-umum on May 23, 2014, 02:28:55 pm

Title: How to play a Lottery Ticket
Post by: muse-umum on May 23, 2014, 02:28:55 pm
 +5% +5%

How does the user input the six numbers ?
Title: Re: How to play a Lottery Ticket
Post by: 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
Title: Re: How to play a Lottery Ticket
Post by: Simeon II on July 15, 2014, 06:42:35 pm

Please give example how to send the transaction directly... this GUI, selecting one number at a time is annoying.
Title: Re: How to play a Lottery Ticket
Post by: FreeTrade on July 15, 2014, 07:08:38 pm
okay, post above updated with up to date information.
Title: Re: How to play a Lottery Ticket
Post by: Simeon II on July 15, 2014, 07:59:20 pm
Thanks!

Excuse my possibly stupid question, buy I send the above transaction with which command :
sendrawtransaction ?
Title: Re: How to play a Lottery Ticket
Post by: jae208 on July 15, 2014, 08:43:30 pm
how often are prizes awarded? once a day?
Title: Re: How to play a Lottery Ticket
Post by: Simeon II on July 15, 2014, 09:04:01 pm
how often are prizes awarded? once a day?

about every 3 min. (theoretically)
Title: Re: How to play a Lottery Ticket
Post by: tonyk on July 16, 2014, 03:32:38 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?
Title: Re: How to play a Lottery Ticket
Post by: FreeTrade on July 16, 2014, 05:59:41 pm
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.