Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proximax-storage/rust-xpx-chain-sdk
Official ProximaX Sirius Chain Rust SDK
https://github.com/proximax-storage/rust-xpx-chain-sdk
chain rust sdk sirius-blockchain
Last synced: 8 days ago
JSON representation
Official ProximaX Sirius Chain Rust SDK
- Host: GitHub
- URL: https://github.com/proximax-storage/rust-xpx-chain-sdk
- Owner: proximax-storage
- License: apache-2.0
- Created: 2019-04-26T21:28:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T18:15:19.000Z (about 1 year ago)
- Last Synced: 2024-10-10T14:19:14.466Z (about 1 month ago)
- Topics: chain, rust, sdk, sirius-blockchain
- Language: Rust
- Homepage:
- Size: 1.28 MB
- Stars: 2
- Watchers: 13
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Official ProximaX Sirius Blockchain SDK Library in Rust.
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
The ProximaX Sirius Chain Rust SDK works as a lightweight Rust library for interacting with the Sirius Blockchain. It provides a complete library set coverage, and supports asynchronous requests.
### Usage
First, add this to your `Cargo.toml`:```toml
[dependencies]
xpx-chain-sdk = { git = "https://github.com/proximax-storage/rust-xpx-chain-sdk"}
```### Example
```rust
#[tokio::main]
async fn main() {
let node_url = vec!["http://bctestnet1.brimstone.xpxsirius.io:3000"];let sirius_client = xpx_chain_sdk::api::SiriusClient::new(node_url).await;
let client = match sirius_client {
Ok(resp) => resp,
Err(err) => panic!("{}", err),
};//let account_id: &str = "VC6LFNKEQQEI5DOAA2OJLL4XRPDNPLRJDH6T2B7X";
let account_id: &str = "5649D09FB884424AB5E3ED16B965CF69E3048A5E641287C319AC3DE995C97FB0";let account_info = client.account_api().account_info(account_id).await;
match account_info {
Ok(resp) => println!("{}", resp),
Err(err) => eprintln!("{}", err),
}
}
```For more examples see [wiki](https://github.com/proximax-storage/rust-xpx-chain-sdk/wiki).