cuprate_test_utils::rpc::data::other

Constant GET_TRANSACTION_POOL_STATS_RESPONSE

Source
pub const GET_TRANSACTION_POOL_STATS_RESPONSE: &str = r#"{
  "credits": 0,
  "pool_stats": {
    "bytes_max": 11843,
    "bytes_med": 2219,
    "bytes_min": 1528,
    "bytes_total": 144192,
    "fee_total": 7018100000,
    "histo": [{
      "bytes": 11219,
      "txs": 4
    },{
      "bytes": 9737,
      "txs": 5
    },{
      "bytes": 8757,
      "txs": 4
    },{
      "bytes": 14763,
      "txs": 4
    },{
      "bytes": 15007,
      "txs": 6
    },{
      "bytes": 15924,
      "txs": 6
    },{
      "bytes": 17869,
      "txs": 8
    },{
      "bytes": 10894,
      "txs": 5
    },{
      "bytes": 38485,
      "txs": 10
    },{
      "bytes": 1537,
      "txs": 1
    }],
    "histo_98pc": 186,
    "num_10m": 0,
    "num_double_spends": 0,
    "num_failing": 0,
    "num_not_relayed": 0,
    "oldest": 1721261651,
    "txs_total": 53
  },
  "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_TRANSACTION_POOL_STATS_RESPONSE);