Skip to content

Commit 6964787

Browse files
committed
docs(rpc): update walletprocesspsbt
Related to dashpay/dash#6503
1 parent e83153c commit 6964787

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

docs/core/api/remote-procedure-call-quick-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
221221
* [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.
222222
* [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.
223223
* [WalletPassphraseChange](../api/remote-procedure-calls-wallet.md#walletpassphrasechange): changes the wallet passphrase from 'old passphrase' to 'new passphrase'.
224-
* [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_
224+
* [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**
225225
* [WipeWalletTxes](../api/remote-procedure-calls-wallet.md#wipewallettxes): wipes wallet transactions. _New in Dash Core 19.3.0_
226226

227227
## [Wallet RPCs (Deprecated)](../api/remote-procedure-calls-wallet-deprecated.md)

docs/core/api/remote-procedure-calls-wallet.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,28 +3831,32 @@ _Parameter #2---Sign Transaction_
38313831

38323832
_Parameter #3---Signature Hash Type_
38333833

3834-
| Name | Type | Presence | Description |
3835-
| ------------- | ------ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3834+
| Name | Type | Presence | Description |
3835+
| ------------- | ------ | ---------------------------- | ----------- |
38363836
| `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 |
38373837

38383838
_Parameter #4---bip32derivs_
38393839

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

3844+
_Parameter #5---finalize_
3845+
3846+
| Name | Type | Presence | Description |
3847+
| ------------- | ------ | ---------------------------- | ----------- |
3848+
| `finalize` | bool | Optional<br>(exactly 0 or 1) | Also finalize inputs if possible (default = `true`). |
3849+
38443850
_Result---the processed wallet_
38453851

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

38523858
_Example from Dash Core 18.0.0_
38533859

3854-
Change the wallet passphrase from "test" to "example":
3855-
38563860
```bash
38573861
dash-cli walletprocesspsbt "cHNidP8BAEICAAAAAXgRxzbShUlivVFKgoLyhk0RCCYLZKCYTl/tYRd+yGImAAAAAAD/////AQAAAAAAAAAABmoEAAECAwAAAAAAAAA="
38583862
```

0 commit comments

Comments
 (0)