Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: How to play a Lottery Ticket  (Read 629 times)

0 Members and 1 Guest are viewing this topic.

Offline heyD

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
How to play a Lottery Ticket
« on: May 23, 2014, 02:28:55 PM »

 +5% +5%

How does the user input the six numbers ?

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: How to play a Lottery Ticket
« Reply #1 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
« Last Edit: July 15, 2014, 07:10:49 PM by FreeTrade »
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline Simeon II

  • Sr. Member
  • ****
  • Posts: 356
    • View Profile
Re: How to play a Lottery Ticket
« Reply #2 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.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: How to play a Lottery Ticket
« Reply #3 on: July 15, 2014, 07:08:38 PM »
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

Offline Simeon II

  • Sr. Member
  • ****
  • Posts: 356
    • View Profile
Re: How to play a Lottery Ticket
« Reply #4 on: July 15, 2014, 07:59:20 PM »
Thanks!

Excuse my possibly stupid question, buy I send the above transaction with which command :
sendrawtransaction ?

Offline jae208

  • Hero Member
  • *****
  • Posts: 525
    • View Profile
Re: How to play a Lottery Ticket
« Reply #5 on: July 15, 2014, 08:43:30 PM »
how often are prizes awarded? once a day?
http://bitsharestutorials.com A work in progress
Subscribe to the Youtube Channel
https://www.youtube.com/user/BitsharesTutorials

Offline Simeon II

  • Sr. Member
  • ****
  • Posts: 356
    • View Profile
Re: How to play a Lottery Ticket
« Reply #6 on: July 15, 2014, 09:04:01 PM »
how often are prizes awarded? once a day?

about every 3 min. (theoretically)

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3309
    • View Profile
Re: How to play a Lottery Ticket
« Reply #7 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?
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: How to play a Lottery Ticket
« Reply #8 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.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

 

Google+