Transaction ee4cb2548ff3ba79bd3b8c81cbed6d66d8e7c67e061f52637dba77b270e6478c
1 Input
-
ff2865d942f155ea67f9808bf715b3a557e94e0132d9043f8816c298de555643:7
OP_DATA_32(32) 47f6787a72d8cc74e61ea4272884ce5f5b9f8de2b1a45f70b38d076f3601a991OP_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) use {super::*, ord::subcommand::index::info::TransactionsOutput}; #[test] fn json_with_satoshi_index() { let rpc_server = test_bitcoincore_rpc::spawn(); CommandBuilder::new("--index-sats index info") .rpc_server(&rpc_server) .stdout_regex( r#"\{ "blocks_indexed": 1, "branch_pages": \d+, "fragmented_bytes": \d+, "index_file_size": \d+, "index_path": ".*\.redb", "leaf_pages": \d+, "metadata_bytes": \d+, "outputs_traversed": 1, "page_size": \d+, "sat_ranges": 1, "stored_bytes":OP_PUSHDATA2(77) \d+, "tables": .*, "transactions": \[ \{ "starting_block_count": 0, "starting_timestamp": \d+ \} \], "tree_height": \d+, "utxos_indexed": 2 \} "#, ) .run_and_extract_stdout(); } #[test] fn json_without_satoshi_index() { let rpc_server = test_bitcoincore_rpc::spawn(); CommandBuilder::new("index info") .rpc_server(&rpc_server) .stdout_regex( r#"\{ "blocks_indexed": 1, "branch_pages": \d+, "fragmented_bytes": \d+, "index_file_size": \d+,OP_ENDIF(104)
1 Outputs
- ee4cb2548ff3ba79bd3b8c81cbed6d66d8e7c67e061f52637dba77b270e6478c:0
value 330
address bc1px6hvd2meh7l467hpx7enz8qa67q4krnl7gq34hc236rp7ks5uqts28tpup