CommandBuilder::new(format!( "wallet inscribe --satpoint {txid}:0:0 --file degenerate.png --fee-rate 0" )) .write("degenerate.png", [1; 100]) .rpc_server(&rpc_server) .run_and_deserialize_output::(); let txid = rpc_server.mine_blocks_with_subsidy(1, 100)[0].txdata[0].txid(); CommandBuilder::new(format!( "wallet send --fee-rate 1 bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 {txid}:0:0" )) .rpc_server(&rpc_server) .expected_exit_code(1) .expected_stderr("error: wallet does not contain enough cardinal UTXOs, please add additional funds to wallet.\n") .run_and_extract_stdout(); } #[test] fn do_not_send_within_dust_limit_of_an_inscription() { let rpc_server = test_bitcoincore_rpc::spawn(); create_wallet(&rpc_server); let (inscription, reveal) = inscribe(&rpc_server); rpc_server.mine_blocks(1); let output = OutPoint { txid: reveal, vout: 0, }; CommandBuilder::new(format!( "wallet send --fee-rate 1 bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 {output}:329"