cuprate_test_utils::rpc::data::other

Constant GET_OUTS_REQUEST

Source
pub const GET_OUTS_REQUEST: &str = r#"{
  "outputs": [{
    "amount": 1,
    "index": 0
  },{
    "amount": 1,
    "index": 1
  }],
  "get_txid": true
}"#;
Expand description

Documentation, response.

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

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