// select smallest utxo >= 104 select_cardinal_utxo_prefer_under_helper(Amount::from_sat(104), false, Amount::from_sat(104)); // select smallest utxo >= 1_000 select_cardinal_utxo_prefer_under_helper( Amount::from_sat(1000), false, Amount::from_sat(10_000), ); // select smallest utxo >= 100_000, else biggest < 100_000 select_cardinal_utxo_prefer_under_helper( Amount::from_sat(100_000), false, Amount::from_sat(20_000), ); } #[test] fn build_transaction_with_custom_postage() { let utxos = vec![(outpoint(1), Amount::from_sat(1_000_000))]; let fee_rate = FeeRate::try_from(17.3).unwrap(); let transaction = TransactionBuilder::new( satpoint(1, 0), BTreeMap::from([(satpoint(1, 0), inscription_id(1))]), utxos.into_iter().collect(), BTreeSet::new(), recipient(), [change(0), change(1)], fee_rate, Target::ExactPostage(Amount::from_sat(66_000)), ) .build_transaction() .unwrap();