https://github.com/eligioo/nimiq-rust-rpc-client
A Nimiq RPC client for the Rust programming language
https://github.com/eligioo/nimiq-rust-rpc-client
blockchain cryptocurrency nimiq rpc rust
Last synced: over 1 year ago
JSON representation
A Nimiq RPC client for the Rust programming language
- Host: GitHub
- URL: https://github.com/eligioo/nimiq-rust-rpc-client
- Owner: Eligioo
- License: apache-2.0
- Created: 2019-12-19T00:33:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T09:31:12.000Z (over 6 years ago)
- Last Synced: 2025-01-21T07:30:02.542Z (over 1 year ago)
- Topics: blockchain, cryptocurrency, nimiq, rpc, rust
- Language: Rust
- Homepage: https://crates.io/crates/nimiq_rpc
- Size: 56.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nimiq RPC client
[](https://crates.io/crates/nimiq_rpc)
[](https://crates.io/crates/nimiq_rpc)
[](https://safe.nimiq.com/#_request/NQ7461S82FD3RVPGHU091Y5777E6BL38TQH2_)
A Nimiq RPC client for the Rust programming language
# Example:
```rust
use nimiq_rpc::Client;
fn main() {
let client = Client::new("http://seed-host.com:8648/");
println!("{:?}", client.accounts().unwrap());
println!("{:?}", client.block_number().unwrap());
println!("{:?}", client.hashrate().unwrap());
println!("{:?}", client.log("*", "log").unwrap());
}
```
# What is Nimiq?
Nimiq is a decentralized, censorship-resistant payment protocol native to the web, with its own diverse ecosystem of apps. The native NIM token is transacted within Nimiq as a store and transfer of value: it acts as digital cash. The cutting-edge, browser-first blockchain approach means that users directly connect to the blockchain with nothing more than a browser. Therefore anyone with an up-to-date browser can join the payment network directly, pay and accept payments without having to install software or rely on unnecessary intermediaries. This gives Nimiq its ‘it just works’ characteristic, which is further strengthened by an ethos of simplicity and ease of use. NIM is designed to be a cryptocurrency used by the masses.
[Read more at nimiq.com](https://nimiq.com)
# Installation:
```
[dependencies]
nimiq_rpc = "0.1.1"
```