Transaction 94182cf50052ca5f81cf6837ff867dd63eb8916b2bd8f419c05b15148ce050c5
1 Input
-
9d7b66d3c8eeb3bfa4b093a3d983937f73849689f61ec439e1bf09b0e7a64724:1
OP_DATA_32(32) 6312e5fea2383317717ec6a3cd0f13257a25a7349e737b6afc5b4a5b5cda11fcOP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_24(24) text/plain;charset=utf-8OP_0(0)OP_PUSHDATA2(77) rpc_server.mine_blocks(1); let Inscribe { inscriptions, .. } = CommandBuilder::new( "wallet inscribe --fee-rate 1 --json-metadata metadata.json --file content.png", ) .write("content.png", [1; 520]) .write("metadata.json", r#"{"foo": "bar", "baz": 1}"#) .rpc_server(&rpc_server) .run_and_deserialize_output(); let inscription = inscriptions[0].id; rpc_server.mine_blocks(1); let ord_server = TestServer::spawn_with_args(&rpc_server, &[]); ord_server.assert_response_regex( format!("/inOP_PUSHDATA2(77) scription/{inscription}"), ".*<dt>metadata</dt>.*<dl><dt>foo</dt><dd>bar</dd><dt>baz</dt><dd>1</dd></dl>.*", ); } #[test] fn cbor_metadata_appears_on_inscription_page() { let rpc_server = test_bitcoincore_rpc::spawn(); create_wallet(&rpc_server); rpc_server.mine_blocks(1); let Inscribe { inscriptions, .. } = CommandBuilder::new( "wallet inscribe --fee-rate 1 --cbor-metadata metadata.cbor --file content.png", ) .write("content.png", [1; 520]) .write( "metadata.cbor", [OP_ENDIF(104)
1 Outputs
- 94182cf50052ca5f81cf6837ff867dd63eb8916b2bd8f419c05b15148ce050c5:0
value 546
address bc1p3mwcrwf93yh2hpfw3zmr6peseyrc4wy55ml7t06ljuce0ypl2uwqd70zyj