This is a .NET6 library for interacting with the Fireblocks API.
dotnet add package Fireblocks.Api
{
"Fireblocks": {
"ApiConfig": {
"BaseUrl": "https://api.fireblocks.io",
"Version": "v1",
"ApiKey": "YOUR_API_KEY",
"ApiSecret": "YOUR_API_SECRET"
},
"JwtConfig": {
"ExpiredInSeconds": 25
}
}
}
using Fireblocks.Api.Extensions;
ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services
.AddFireblocksApiConfigs(configuration);
.AddFireblocksApiServices(configuration);
}
using Fireblocks.Api.Interfaces;
using Fireblocks.Api.Models.Responses;
using Fireblocks.Api.Services;
public class MyProcess
{
private readonly IVaultService _vaultService;
public MyProcess(IVaultService vaultService) =>
_vaultService = vaultService;
public async Task GetVaultAccountAsync()
{
var myVaultAccount = await _vaultService.GetVaultAccountAsync("YOUR_VAULT_ACCOUNT_ID");
}
}