pub trait BitswapApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn bitswap_v1_get(&self, cid: String) -> RpcResult<String>;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}Expand description
Server trait implementation for the BitswapApi RPC API.
Required Methods§
Sourcefn bitswap_v1_get(&self, cid: String) -> RpcResult<String>
fn bitswap_v1_get(&self, cid: String) -> RpcResult<String>
Retrieve indexed transaction data by CID.
Accepts a CIDv1 (base32 multibase-encoded string), extracts the 32-byte hash digest, looks up the indexed transaction, and returns hex-encoded data.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.