Author Topic: How to play a Lottery Ticket  (Read 5407 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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 Simeon II

  • Sr. Member
  • ****
  • Posts: 355
    • View Profile
how often are prizes awarded? once a day?

about every 3 min. (theoretically)

Offline jae208

  • Hero Member
  • *****
  • Posts: 525
    • View Profile
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: 355
    • View Profile
Thanks!

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

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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: 355
    • View Profile

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
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 muse-umum

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
 +5% +5%

How does the user input the six numbers ?