10 unstable releases (3 breaking)

new 0.4.3 Jul 21, 2024
0.4.2 Jul 14, 2024
0.4.1 Jun 30, 2024
0.3.2 May 10, 2024
0.1.0 Apr 25, 2024

#2341 in Magic Beans

Download history 217/week @ 2024-04-20 307/week @ 2024-04-27 429/week @ 2024-05-04 45/week @ 2024-05-11 6/week @ 2024-05-18 1/week @ 2024-05-25 160/week @ 2024-06-22 184/week @ 2024-06-29 7/week @ 2024-07-06 146/week @ 2024-07-13

497 downloads per month

MIT license

110KB
2.5K SLoC

fireblocks-sdk

Overview

fireblocks_sdk is an async library for the Fireblocks API

!!!! Note this is community driven project and not affiliated with Fireblocks !!!!!

Getting Started

See developer portal and sign up for a sandbox account

Quick Start

use fireblocks_sdk::{ClientBuilder, PagingVaultRequestBuilder};
use std::time::Duration;

async fn vaults() -> color_eyre::Result<()> {
  let api_key = std::env::var("FIREBLOCKS_API_KEY")?;
  let secret = std::env::var("FIREBLOCKS_SECRET")?;
  let client = ClientBuilder::new(&api_key, &secret.into_bytes())
    .with_timeout(Duration::from_secs(10))
    .with_connect_timeout(Duration::from_secs(5))
    .build()?;
  let params = PagingVaultRequestBuilder::new().limit(10).build()?;
  let (vault_accounts, request_id) = client.vaults(params).await?;
  println!("Got requestId: {request_id}");
  println!("vault accounts: {:#?}", vault_accounts.accounts);
  Ok(())
}

Development

Create a .env file

cp .env-sameple .env

Edit .env and configure your API and secret key

Run tests:

cargo test

Supported Endpoints

Dependencies

~8–24MB
~386K SLoC