pub trait BitswapApiClient: ClientT {
// Provided method
fn bitswap_v1_get<'life0, 'async_trait>(
&'life0 self,
cid: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Client implementation for the BitswapApi RPC API.
Provided Methods§
Sourcefn bitswap_v1_get<'life0, 'async_trait>(
&'life0 self,
cid: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn bitswap_v1_get<'life0, 'async_trait>(
&'life0 self,
cid: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
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.
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.