![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
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!("/inscription/{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", [
Inscription #44968966
Collection
Ord
Owner
bc1q7wswhq...x9sx9af33lID
94182cf500...8ce050c5i0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!