server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("text/plain", "hello").to_witness())], op_return: Some( Runestone { edicts: vec![Edict { id: 0, amount: u128::max_value(), output: 0, }], etching: Some(Etching { rune, ..Default::default() }), ..Default::default() } .encipher(), ), ..Default::default() }); server.mine_blocks(1); server.assert_redirect("/search/2/1", "/rune/AAAAAAAAAAAAA"); server.assert_redirect("/search?query=2/1", "/rune/AAAAAAAAAAAAA"); server.assert_response_regex("/rune/100/200", StatusCode::NOT_FOUND, ".*"); server.assert_response_regex( "/search/100000000000000000000/200000000000000000", StatusCode::BAD_REQUEST, ".*", ); } #[test] fn runes_are_displayed_on_runes_page() { let server = TestServer::new_with_regtest_with_index_runes();