cuprate_test_utils::rpc::data::other

Constant START_MINING_REQUEST

Source
pub const START_MINING_REQUEST: &str = r#"{
  "do_background_mining": false,
  "ignore_battery": true,
  "miner_address": "47xu3gQpF569au9C2ajo5SSMrWji6xnoE5vhr94EzFRaKAGw6hEGFXYAwVADKuRpzsjiU1PtmaVgcjUJF89ghGPhUXkndHc",
  "threads_count": 1
}"#;
Expand description

Documentation, response.

use cuprate_test_utils::rpc::data::other::*;
use serde_json::{to_value, Value};

let value = serde_json::from_str::<Value>(&START_MINING_REQUEST);