1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

//! Rust client library for the ParallelChain Protocol fullnode
//! [RPC API](https://github.com/parallelchain-io/parallelchain-protocol/blob/master/RPC.md).
//! 
//! ## Getting started
//! 
//! Get started by creating an instance of client. 
//! 
//! ```no_run
//! use pchain_client::Client;
//! 
//! let client = Client::new("https://rpc_base_url.xyz");
//! ```
//! 
//! You will then be able to access each RPC through a corresponding method of the same name.
//! 
//! ```no_run
//! client.submit_transaction(txn);
//! client.block(block_request);
//! client.state(state_request);
//! // etc.
//! ```

pub mod client;
pub use client::Client;

mod networking;

mod error;