BlockBee api .NET wrappper.
This client covers all API endpoints explained at https://docs.blockbee.io/
- Receive a payment
- Create New Address
- Check Payment Logs
- Utils
- Check Coin Information
- Generate QR Code
- Estimate Blockchain Feed
- Convert Prices
- Checkout
- Create a Checkout Payments
- Create a Checkout Deposits
- Payouts
- Create a Payout Request
You can download the source code and add it your your project.
Alternatively, you can use NuGet to install the package.
dotnet add package Cotur.BlockBee
Install-Package Cotur.BlockBee
var options = Options.Create(new BlockBeeOptions
{
ApiKey = "ADD_YOUR_API_KEY"
};
IBlockBeeClient client = new BlockBeeClient(options);
// Register
services.AddTransient<IBlockBeeClient, BlockBeeClient>();
// Inject
class MyService
{
private readonly IBlockBeeClient _blockBeeClient;
public MyService(IBlockBeeClient blockBeeClient)
{
_blockBeeClient = blockBeeClient;
}
}