Skip to content

A nuget package for Fireblocks REST API client using .NET6

License

Notifications You must be signed in to change notification settings

ed555009/fireblocks-api

Repository files navigation

Fireblocks.Api

GitHub Build Status Nuget

Coverage Quality Gate Status Reliability Rating Security Rating Vulnerabilities

Description

This is a .NET6 library for interacting with the Fireblocks API.

Quick start

Installation

dotnet add package Fireblocks.Api

Appsettings.json

{
	"Fireblocks": {
		"ApiConfig": {
			"BaseUrl": "https://api.fireblocks.io",
			"Version": "v1",
			"ApiKey": "YOUR_API_KEY",
			"ApiSecret": "YOUR_API_SECRET"
		},
		"JwtConfig": {
			"ExpiredInSeconds": 25
		}
	}
}

Add configs & services

using Fireblocks.Api.Extensions;

ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
	services
		.AddFireblocksApiConfigs(configuration);
		.AddFireblocksApiServices(configuration);
}

Using services

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");
	}
}

Reference

About

A nuget package for Fireblocks REST API client using .NET6

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages