cuprate_test_utils::rpc::data::other

Constant GET_PUBLIC_NODES_RESPONSE

Source
pub const GET_PUBLIC_NODES_RESPONSE: &str = r#"{
  "status": "OK",
  "untrusted": false,
  "white": [{
    "host": "70.52.75.3",
    "last_seen": 1721246387,
    "rpc_credits_per_hash": 0,
    "rpc_port": 18081
  },{
    "host": "zbjkbsxc5munw3qusl7j2hpcmikhqocdf4pqhnhtpzw5nt5jrmofptid.onion:18083",
    "last_seen": 1720186288,
    "rpc_credits_per_hash": 0,
    "rpc_port": 18089
  }]
}"#;
Expand description

Documentation, request.

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

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