Title: [API] Primedice.NET - Utilize the functionality of Primedice.com in .NET 4.5 Post by: kripod on November 30, 2015, 04:13:22 PM Primedice.NET View on GitHub (https://github.com/kripod/Primedice.NET) Primedice.NET wraps the functionality of the Primedice (https://primedice.com) API in C#. The project is written in .NET 4.5 as a portable class library. Getting started The following examples assume that the project has been referenced with the using directive: Code: using KriPod.Primedice; Please be advised that all the monetary amounts are in satoshi by default (1 satoshi = 0.00000001 bitcoin). Registering a new user Code: var username = "<username>"; Making a bet with an existing user Code: var serverSeed = "<serverSeed>"; Withdrawing and depositing funds Code: var authToken = "<authToken>"; Title: Re: [API] Primedice.NET - Utilize the functionality of Primedice.com in .NET 4.5 Post by: cloverme on December 02, 2015, 02:29:55 PM Nice code solution for their API, glad to see someone else coding in C# too :D I'm still amazed that any gambling site allows access to an API. Especially PD since a user figured out how to access the current decrypted server seed 6 months ago. Granted they plugged the hole, but still.
You could also add a provably fair check for past bets/rolls in there, just for good measure. Title: Re: [API] Primedice.NET - Utilize the functionality of Primedice.com in .NET 4.5 Post by: kripod on December 02, 2015, 05:17:39 PM Nice code solution for their API, glad to see someone else coding in C# too :D I'm still amazed that any gambling site allows access to an API. Especially PD since a user figured out how to access the current decrypted server seed 6 months ago. Granted they plugged the hole, but still. You could also add a provably fair check for past bets/rolls in there, just for good measure. A provably fair check is already implemented, just use Bet.Verify("serverSeed") :) I think that PrimeDice doesn't currently allow getting previous seed pairs, but I have already suggested them adding the functionality (https://bitcointalk.org/index.php?topic=208986.msg13126993#msg13126993) to do so. |