Integrate FireFly in Under an Hour
Full walkthrough from NuGet install to your first live game round using the C# integration.
Install the NuGet package
Add `Fireball.FireFly` from NuGet to your .NET project. The package targets .NET 6+ and includes async/await support, built-in resilience policies, and structured logging via Microsoft.Extensions.Logging.
Configure the client
Register FireFly in your DI container with your operator credentials from FireStation. FireFly reads configuration from `appsettings.json` or environment variables — no custom plumbing needed.
Implement the game launch flow
Call `firefly.Games.GetLaunchUrl(gameId, playerId, currency)` to generate a signed launch URL. Pass it to your frontend to open the game in an iframe or redirect.
Handle callbacks
Register your callback URL in FireStation. FireFly validates incoming callback signatures automatically. Implement `OnBet`, `OnWin`, and `OnRefund` handlers in your controller — each receives a strongly-typed model.



