Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dougefresh/fireblocks-sdk-rs
https://github.com/dougefresh/fireblocks-sdk-rs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dougefresh/fireblocks-sdk-rs
- Owner: dougEfresh
- License: mit
- Created: 2024-02-20T18:26:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T13:54:39.000Z (3 months ago)
- Last Synced: 2024-11-18T18:07:24.575Z (about 2 months ago)
- Language: Rust
- Size: 147 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: SUPPORTED_ENDPOINTS.md
Awesome Lists containing this project
README
# Overview
`fireblocks_sdk` is an async library for the Fireblocks [API](https://docs.fireblocks.com/api/swagger-ui/#)
!!!! Note this is community driven project and not affiliated with [Fireblocks](https://fireblocks.io) !!!!!
# Getting Started
See developer [portal](https://developers.fireblocks.com/docs/introduction) and sign up for a [sandbox](https://developers.fireblocks.com/docs/sandbox-quickstart) account
# Quick Start
```rust
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
```shell
cp .env-sameple .env
```
Edit .env and configure your API and secret keyRun tests:
```shell
cargo test
```
---# Supported [Endpoints](./SUPPORTED_ENDPOINTS.md)