Crate kaspa_rpc_core

Crate kaspa_rpc_core 

Source
Expand description

§RPC Core

This crate provides foundational primitives used in Rusty Kaspa node RPC subsystem. These include the main RpcApi trait, RpcApiOps enum used in RPC method dispatching, and various data structures used in RPC method arguments.

This crate acts as a foundation for kaspa_grpc_client and kaspa_wrpc_client crates, which provide gRPC and WebSocket RPC client implementations. This crate is also used by WASM bindings to provide WASM RpcClient implementation (based on wRPC).

Re-exports§

pub use api::notifications::*;
pub use convert::utxo::*;
pub use error::*;
pub use model::script_class::*;
pub use model::*;

Modules§

api
API module for the RPC server. Implements core RPC primitives.
convert
Data conversion utilities and structs for the RPC layer.
error
RpcError enum used by RPC primitives.
model
This module contains RPC-specific data structures used in RPC methods.
notify
Notification structures used by the RPC subsystem.
prelude
Re-exports of the most commonly used types and traits in this crate.
wasm
WASM related conversions