From 0bde816d112898274ec99baa24e4492857bc5bcb Mon Sep 17 00:00:00 2001 From: PowVT Date: Fri, 13 Sep 2024 10:07:34 -0400 Subject: [PATCH] update documentation --- README.md | 7 ++++++- src/modules/verification.rs | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5ea15ec..bb1e42c 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The commands `just bootstrap-btc` and `just bootstrap-ord` will need to run in t | `just derive-addresses` | ` ` | Derives one or more addresses corresponding to an output descriptor | | `just sign-tx` | ` ` | Using the specified wallet, sign a transaction sending an amount of BTC to a recipient address. The UTXO selection strategy defaults to FIFO. | | `just send-btc` | ` ` | Using the specified wallet, this will automatically create, sign, and broadcast a BTC transaction to the network. The wallet will find the appropriate UTXO to use (the stategy cannot be specified here), calculate an appropriate fee for the tx, and send the change back to the sender. | -| `just process-psbt` | ` ` | Using the specified wallet, sign a PSBT. | +| `just wallet-process-psbt` | ` ` | Using the specified wallet, sign a PSBT. | #### All Multisig Commands @@ -79,6 +79,10 @@ The commands `just bootstrap-btc` and `just bootstrap-ord` will need to run in t | `just create-psbt` | ` ` | Create a multisig transaction that will need to be signed by the signers on the multisig. The UTXO selection strategy defaults to FIFO. Refer to the wallet command `process-psbt` for signing a PSBT. | | `just decode-psbt` | `` | Retrieve the inputs and outputs for a specific PSBT. | | `just analyze-psbt` | `` | Retrieve network-related information related to a specific PSBT. | +| `just combine-psbts` | `` | Combine multiple partially signed Bitcoin transactions into one transaction. | +| `just finalize-psbt` | `` | Using a multisig transaction that is fully signed, it will produce a network serialized transaction which can be broadcast with `sendrawtransaction`. | +| `just finalize-psbt-and-braodcast` | `` | Using a multisig transaction that is fully signed, it will produce a network serialized transaction and broadcast it to the network. | + #### All BTC Network Commands @@ -88,6 +92,7 @@ The commands `just bootstrap-btc` and `just bootstrap-ord` will need to run in t | `just kill-all` | - | Terminate the local Regtest chain and clear all cached data. This will also stop the ordinals server and clear that data as well if it is present. | | `just mine-blocks` | ` ` | On the Regtest network, mine the specified number of blocks. The program will generate a recipient address for the block rewards. Remember, coinbase transactions are only available for spending after 100 block confirmations. | | `just get-tx` | `` | Get information related to a specific transaction that was broadcast to the network. | +| `just get-tx-out` | ` ` | Get the tx outputs related to a specific transaction that was broadcast to the network. Optionally pass a minimum number of confirmations to filter out vouts with less than the specified number of confirmations. | | `just broadcast-tx` | ` ` | Broadcast a signed transaction to the network. Optionally, pass a fee rate in sats/vByte that is the max fee rate you are willing to broadcast transactions for. Passing a fee rate of `0` will bypass all fee rate restrictions implemented by the wallet. | | `just get-spendable-balance` | `
` | Sum all UTXO amounts where the number of block confirmations is greater than or equal to 6. | diff --git a/src/modules/verification.rs b/src/modules/verification.rs index 8630c29..a284af6 100644 --- a/src/modules/verification.rs +++ b/src/modules/verification.rs @@ -20,7 +20,7 @@ pub fn verify_signed_tx(tx_hex: &str, settings: &Settings) -> Result<(), Box Option { match get_tx(&outpoint.txid.to_string(), settings) { Ok(prev_tx) => prev_tx.vout.get(outpoint.vout as usize).map(|output| { @@ -33,7 +33,7 @@ pub fn verify_signed_tx(tx_hex: &str, settings: &Settings) -> Result<(), Box