Bitcoin Forum
April 24, 2024, 03:38:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Some help with the RPC for a dice game  (Read 584 times)
Sothh (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
September 05, 2013, 12:40:29 AM
 #1

Hey guys,

I have been working on a dice game for an alternate cripto, but as the RPC are the same, it applies to bitcoin as well.  It will be released open source when finished, and should be easy to use for all altcoins.

All I need is a push in the right direction, as this is my first time working with the RPC.

Here is how I believe it works:

I poll the betting addresses for "new" transactions.  I might have to store "old" transactions in a database so I can only check for new ones?

I once I find new transactions, I do my dice whatever to find out if the person wins or not.

I then send their winnings to address I received from, and maybe use the same txid so I don't have to wait for confirms.

Is the correct, and what RPC calls would I make?

Thanks~!
1713973080
Hero Member
*
Offline Offline

Posts: 1713973080

View Profile Personal Message (Offline)

Ignore
1713973080
Reply with quote  #2

1713973080
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713973080
Hero Member
*
Offline Offline

Posts: 1713973080

View Profile Personal Message (Offline)

Ignore
1713973080
Reply with quote  #2

1713973080
Report to moderator
1713973080
Hero Member
*
Offline Offline

Posts: 1713973080

View Profile Personal Message (Offline)

Ignore
1713973080
Reply with quote  #2

1713973080
Report to moderator
1713973080
Hero Member
*
Offline Offline

Posts: 1713973080

View Profile Personal Message (Offline)

Ignore
1713973080
Reply with quote  #2

1713973080
Report to moderator
smeagol
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
September 05, 2013, 01:59:43 AM
 #2

Look at this article: http://www.devtome.com/doku.php?id=communicating_with_devcon_wallet_using_php&s[]=connecting&s[]=php
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!