bitgo_api

Crates.iobitgo_api
lib.rsbitgo_api
version0.2.1
sourcesrc
created_at2021-08-31 06:48:34.762133
updated_at2022-08-16 08:33:35.509173
descriptionRust implimentation for Bitgo api
homepage
repository
max_upload_size
id444886
size38,572
ragnarok87 (nagarajmanjunath)

documentation

README

BitGo API

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

Example

Make sure you have the below line in your Cargo.toml:

[dependencies]
bitgo_api = {version="0.2.1"}

How to mock

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

License

This project is licensed under the [MIT license].

Contribution

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.

Commit count: 0

cargo fmt