Crates.io | bitgo_api |
lib.rs | bitgo_api |
version | 0.2.1 |
source | src |
created_at | 2021-08-31 06:48:34.762133 |
updated_at | 2022-08-16 08:33:35.509173 |
description | Rust implimentation for Bitgo api |
homepage | |
repository | |
max_upload_size | |
id | 444886 |
size | 38,572 |
Rustlang implementation of the BitGo API.
BitGo provides a simple and robust RESTful API and client SDK to integrate digital currency wallets with your application. In Platform V2, we have extended our API and SDK to allow the management of multiple digital currencies and wallets through a single, unified interface.
The BitGo SDK enables the following:
Creation of multi-signature wallets
Wallet balance and transaction listing
Transaction creation and signing
Transaction monitoring and notifications
Secure user authentication
Multi-user workflows for use in enterprise environments
Policies and spending limits
Make sure you have the below line in your Cargo.toml:
[dependencies]
bitgo_api = {version="0.2.1"}
You can mock the APIs for testing purpose like this:
let mut mock = MockBitGo::new();
mock.expect_create_address().return_const(Ok(
json!({ "address": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS" }),
));
let v = mock.create_address("any", " any").await.unwrap();
assert_eq!(
value_or_error(v, "address").unwrap().to_owned(),
"2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS"
);
This project is licensed under the [MIT license].
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in BitGo by you, shall be licensed as Apache, without any additional terms or conditions.