.write("inscription.txt", "Hello World") .write( "batch.yaml", "mode: shared-output\ninscriptions:\n- file: inscription.txt\n metadata: 123\n metaprotocol: foo", ) .rpc_server(&rpc_server) .run_and_deserialize_output::<Inscribe>(); rpc_server.mine_blocks(1); assert_eq!(rpc_server.descriptors().len(), 3); let ord_server = TestServer::spawn_with_args(&rpc_server, &[]); let request = ord_server.request(format!("/content/{}", output.inscriptions[0].id)); assert_eq!(request.status(), 200); assert_eq!( request.headers().get("content-type").unwrap(), "text/plain;charset=utf-8" ); assert_eq!(request.text().unwrap(), "Hello World"); ord_server.assert_response_regex( format!("/inscription/{}", output.inscriptions[0].id), r".*<dt>metadata</dt>\s*<dd>\n 123\n </dd>.*<dt>metaprotocol</dt>\s*<dd>foo</dd>.*", ); } #[test] fn batch_inscribe_with_multiple_inscriptions() { let rpc_server = test_bitcoincore_rpc::spawn(); rpc_server.mine_blocks(1);

Inscription #44971889

ID

25254d2ddc...28126a4di0

Detail

History

Action
Price
Marketplace
From
To
Time

SALE

0.0005

17.04

magiceden

tpup2njc

9 months

INSCRIBED

-

-

-tpup

9 months

Sign Up for our Newsletter

And be the first to know about any updates!

OrdinalHub logo

All Rights Reserved OrdinalHub.com 2024

Support

Follow Us