rarity: Rarity::Common, percentile: "0.000714285715119048%".into(), satpoint: Some(SatPoint::from_str(&format!("{}:{}:{}", reveal, 0, 0)).unwrap()), timestamp: 3, inscriptions: vec![inscription_id], } ) } #[test] fn get_inscription() { let rpc_server = test_bitcoincore_rpc::spawn(); 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!("/inscription/{}", inscription_id)); assert_eq!(response.status(), StatusCode::OK); let mut inscription_json: InscriptionJson = serde_json::from_str(&response.text().unwrap()).unwrap(); assert_regex_match!(inscription_json.address.unwrap(), r"bc1p.*"); inscription_json.address = None; pretty_assert_eq!( inscription_json, InscriptionJson { parent: None, children: Vec::new(), inscription_id, inscription_number: 0, genesis_height: 2,
Inscription number 44,985,494
Genesis block 819,063
File type text
File size 1.02 KB
Creation date Nov 30,2023 2:14 am