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§

Modules§

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