pchain_client/lib.rs
1
2//! Rust client library for the ParallelChain Protocol fullnode
3//! [RPC API](https://github.com/parallelchain-io/parallelchain-protocol/blob/master/RPC.md).
4//!
5//! ## Getting started
6//!
7//! Get started by creating an instance of client.
8//!
9//! ```no_run
10//! use pchain_client::Client;
11//!
12//! let client = Client::new("https://rpc_base_url.xyz");
13//! ```
14//!
15//! You will then be able to access each RPC through a corresponding method of the same name.
16//!
17//! ```no_run
18//! client.submit_transaction(txn);
19//! client.block(block_request);
20//! client.state(state_request);
21//! // etc.
22//! ```
23
24pub mod client;
25pub use client::Client;
26
27mod networking;
28
29mod error;
30