arch_sdk 0.6.7

A Rust SDK for building applications on the Arch Network blockchain platform. Provides tools and interfaces for developing, testing, and deploying programs with native Bitcoin integration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::client::error::Result;
use async_trait::async_trait;
use serde_json::Value;

pub mod http;
pub mod tcp;

pub use tcp::TcpClient;
#[async_trait]
pub trait RpcTransport: Send + Sync {
    /// Calls the RPC method on the server and returns the
    /// resulting JSON in serialized format.
    async fn call(&self, json: &Value) -> Result<String>;
}