CommandBuilder::new("wallet inscribe --dry-run --file degenerate.png --fee-rate 1") .write("degenerate.png", [1; 520]) .rpc_server(&rpc_server) .run_and_deserialize_output::() .total_fees; let total_fee_normal = CommandBuilder::new("wallet inscribe --dry-run --file degenerate.png --fee-rate 1.1") .write("degenerate.png", [1; 520]) .rpc_server(&rpc_server) .run_and_deserialize_output::() .total_fees; assert!(total_fee_dry_run < total_fee_normal); } #[test] fn inscribe_to_specific_destination() { let rpc_server = test_bitcoincore_rpc::spawn(); create_wallet(&rpc_server); rpc_server.mine_blocks(1); let destination = CommandBuilder::new("wallet receive") .rpc_server(&rpc_server) .run_and_deserialize_output::() .address; let txid = CommandBuilder::new(format!( "wallet inscribe --destination {} --file degenerate.png --fee-rate 1", destination.clone().assume_checked()