cuprate_test_utils::rpc::data::other

Constant GET_OUTS_RESPONSE

Source
pub const GET_OUTS_RESPONSE: &str = r#"{
  "credits": 0,
  "outs": [{
    "height": 51941,
    "key": "08980d939ec297dd597119f498ad69fed9ca55e3a68f29f2782aae887ef0cf8e",
    "mask": "1738eb7a677c6149228a2beaa21bea9e3370802d72a3eec790119580e02bd522",
    "txid": "9d651903b80fb70b9935b72081cd967f543662149aed3839222511acd9100601",
    "unlocked": true
  },{
    "height": 51945,
    "key": "454fe46c405be77625fa7e3389a04d3be392346983f27603561ac3a3a74f4a75",
    "mask": "1738eb7a677c6149228a2beaa21bea9e3370802d72a3eec790119580e02bd522",
    "txid": "230bff732dc5f225df14fff82aadd1bf11b3fb7ad3a03413c396a617e843f7d0",
    "unlocked": true
  }],
  "status": "OK",
  "top_hash": "",
  "untrusted": false
}"#;
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_OUTS_RESPONSE);