Author

Topic: Some help with the RPC for a dice game (Read 605 times)

legendary
Activity: 1008
Merit: 1005
full member
Activity: 238
Merit: 100
September 04, 2013, 07:40:29 PM
#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~!
Jump to: