cuprate_test_utils::rpc::data::other

Constant IS_KEY_IMAGE_SPENT_RESPONSE

Source
pub const IS_KEY_IMAGE_SPENT_RESPONSE: &str = r#"{
  "credits": 0,
  "spent_status": [1,1],
  "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>(&IS_KEY_IMAGE_SPENT_RESPONSE);