Skip to content

Commit

Permalink
docs(rpc): update walletprocesspsbt
Browse files Browse the repository at this point in the history
  • Loading branch information
thephez committed Jan 30, 2025
1 parent e83153c commit 6964787
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/core/api/remote-procedure-call-quick-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [WalletLock](../api/remote-procedure-calls-wallet.md#walletlock): removes the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call `walletpassphrase` again before being able to call any methods which require the wallet to be unlocked.
* [WalletPassphrase](../api/remote-procedure-calls-wallet.md#walletpassphrase): stores the wallet decryption key in memory for the indicated number of seconds. Issuing the `walletpassphrase` command while the wallet is already unlocked will set a new unlock time that overrides the old one.
* [WalletPassphraseChange](../api/remote-procedure-calls-wallet.md#walletpassphrasechange): changes the wallet passphrase from 'old passphrase' to 'new passphrase'.
* [WalletProcessPSBT](../api/remote-procedure-calls-wallet.md#walletprocesspsbt): updates a PSBT with input information from a wallet and then allows the signing of inputs. _Updated in Dash Core 18.2.0_
* [WalletProcessPSBT](../api/remote-procedure-calls-wallet.md#walletprocesspsbt): updates a PSBT with input information from a wallet and then allows the signing of inputs. **Updated in Dash Core 22.1.0**
* [WipeWalletTxes](../api/remote-procedure-calls-wallet.md#wipewallettxes): wipes wallet transactions. _New in Dash Core 19.3.0_

## [Wallet RPCs (Deprecated)](../api/remote-procedure-calls-wallet-deprecated.md)
Expand Down
20 changes: 12 additions & 8 deletions docs/core/api/remote-procedure-calls-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3831,28 +3831,32 @@ _Parameter #2---Sign Transaction_

_Parameter #3---Signature Hash Type_

| Name | Type | Presence | Description |
| ------------- | ------ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Presence | Description |
| ------------- | ------ | ---------------------------- | ----------- |
| `sighashtype` | string | Optional<br>(exactly 0 or 1) | The signature hash type to sign with if not specified by the PSBT. Must be one of the following (default = ALL):<br> - ALL<br> - NONE<br> - SINGLE<br> - ALL\|ANYONECANPAY<br> - NONE\|ANYONECANPAY<br> - SINGLE\|ANYONECANPAY |

_Parameter #4---bip32derivs_

| Name | Type | Presence | Description |
| ------------- | ---- | ---------------------------- | --------------------------------------------------------------------------------- |
| Name | Type | Presence | Description |
| ------------- | ------ | ---------------------------- | ----------- |
| `bip32derivs` | bool | Optional<br>(exactly 0 or 1) | Includes the BIP 32 derivation paths for public keys if known (default = `true`). |

_Parameter #5---finalize_

| Name | Type | Presence | Description |
| ------------- | ------ | ---------------------------- | ----------- |
| `finalize` | bool | Optional<br>(exactly 0 or 1) | Also finalize inputs if possible (default = `true`). |

_Result---the processed wallet_

| Name | Type | Presence | Description |
| --------------- | ------ | ----------------------- | --------------------------------------------------- |
| Name | Type | Presence | Description |
| ------------- | ------ | ---------------------------- | ----------- |
| `result` | object | Required<br>(exactly 1) | The results of the signature |
| →<br>`psbt` | string | Required<br>(exactly 1) | The base64-encoded partially signed transaction |
| →<br>`complete` | bool | Required<br>(exactly 1) | If the transaction has a complete set of signatures |

_Example from Dash Core 18.0.0_

Change the wallet passphrase from "test" to "example":

```bash
dash-cli walletprocesspsbt "cHNidP8BAEICAAAAAXgRxzbShUlivVFKgoLyhk0RCCYLZKCYTl/tYRd+yGImAAAAAAD/////AQAAAAAAAAAABmoEAAECAwAAAAAAAAA="
```
Expand Down

0 comments on commit 6964787

Please sign in to comment.