Module cuprate_test_utils::rpc
source · Expand description
Monero RPC client.
This module is a client for Monero RPC that maps the types
into the native types used by Cuprate found in cuprate_types.
§Usage
ⓘ
#[tokio::main]
async fn main() {
// Create RPC client.
let rpc = HttpRpcClient::new(None).await;
// Collect 20 blocks.
let mut vec: Vec<VerifiedBlockInformation> = vec![];
for height in (3130269 - 20)..3130269 {
vec.push(rpc.get_verified_block_information(height).await);
}
}Structs§
- An HTTP RPC client for Monero.
Constants§
- The default URL used for Monero RPC connections.