create_wallet(&rpc_server); let (inscription_id, reveal) = inscribe(&rpc_server); let response = TestServer::spawn_with_server_args(&rpc_server, &["--index-sats"], &["--enable-json-api"]) .json_request(format!("/sat/{}", 50 * COIN_VALUE)); assert_eq!(response.status(), StatusCode::OK); let sat_json: SatJson = serde_json::from_str(&response.text().unwrap()).unwrap(); pretty_assert_eq!( sat_json, SatJson { number: 50 * COIN_VALUE, decimal: "1.0".into(), degree: "0°1′1″0‴".into(), name: "nvtcsezkbth".into(), block: 1, cycle: 0, epoch: 0, period: 0, offset: 0, rarity: Rarity::Uncommon, percentile: "0.00023809523835714296%".into(), satpoint: Some(SatPoint::from_str(&format!("{}:{}:{}", reveal, 0, 0)).unwrap()), timestamp: 1, inscriptions: vec![inscription_id], } ) } #[test] fn get_sat_with_inscription_on_common_sat_and_more_inscriptions() { let rpc_server = test_bitcoincore_rpc::spawn();