Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metachaos-systems/steem-client-rs
Client library for Steem blockchain built with Rust
https://github.com/metachaos-systems/steem-client-rs
Last synced: 16 days ago
JSON representation
Client library for Steem blockchain built with Rust
- Host: GitHub
- URL: https://github.com/metachaos-systems/steem-client-rs
- Owner: metachaos-systems
- License: mit
- Created: 2016-08-11T19:49:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T16:19:51.000Z (over 7 years ago)
- Last Synced: 2024-04-10T17:19:26.934Z (7 months ago)
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-steem - SteemClientRS - Client library for Steem blockchain built with Rust (SDKs)
README
# Steem-client-rs
This is a Steem client library for Rust. Work in progress.
# How to use
Steem-client-rs hasn't been graduated to crates.io yet, so you'll need to use git dependency, like this.
```rust
[dependencies]
steem-client = { git = "https://github.com/cyberpunk-ventures/steem-client-rs" }
```Example code
```rust
extern crate steem_client;
use steem_client::*;let api = steem_client::SteemApi::DatabaseApi;
let api_method = "get_dynamic_global_properties".to_string();
let args = vec![];let response: Result = steem_client::call(api, api_method, args);
response["result"]["head_block_number"].as_u64().unwrap() > 10000000; // true
```# Roadmap
* Implement futures
* Investigate json_rpc crate from eth_core implementation in Ethereum's Parity
* Add more utility functions
* Investigate WS and evented approach
* Add more response structs and types for different JSONRPC apis and methods
* More tests and docs