locked_utxos: &BTreeSet<OutPoint>,
utxos: &BTreeMap<OutPoint, Amount>,
) -> SubcommandResult {
let wallet_inscriptions = index.get_inscriptions(utxos)?;
let commit_tx_change = [
get_change_address(client, chain)?,
get_change_address(client, chain)?,
];
let (commit_tx, reveal_tx, recovery_key_pair, total_fees) = self
.create_batch_inscription_transactions(
wallet_inscriptions,
chain,
locked_utxos.clone(),
utxos.clone(),
commit_tx_change,
)?;
if self.dry_run {
return Ok(Box::new(self.output(
commit_tx.txid(),
reveal_tx.txid(),
total_fees,
self.inscriptions.clone(),
)));
}
let signed_commit_tx = client
.sign_raw_transaction_with_wallet(&commit_tx, None, None)?
.hex;
let signed_reveal_tx = if self.parent_info.is_some() {
client
.sign_raw_transaction_with_wallet(
&reveal_tx,
Some(
&commit_tx
.output