| Crates.io | pactus-jsonrpc |
| lib.rs | pactus-jsonrpc |
| version | 1.10.1 |
| created_at | 2025-10-01 12:57:07.137543+00 |
| updated_at | 2025-10-30 17:24:19.788832+00 |
| description | Rust client for interacting with the Pactus blockchain via JSON-RPC |
| homepage | https://pactus.org |
| repository | https://github.com/pactus-project/pactus |
| max_upload_size | |
| id | 1862547 |
| size | 127,843 |
Rust client for interacting with the Pactus blockchain via JSON-RPC.
cargo add pactus-jsonrpc
use jsonrpsee::http_client::HttpClient;
use pactus_jsonrpc::pactus::PactusOpenRPC;
#[tokio::main]
async fn main() {
let client = HttpClient::builder().build("http://127.0.0.1:8545").unwrap();
let rpc: PactusOpenRPC<HttpClient> = PactusOpenRPC::new(client);
let info = rpc.pactus_blockchain_get_blockchain_info().await.unwrap();
println!("get_blockchain_info Response: {:?}", info);
}