vaultsigndryrun
vaultsigndryrun "psbt" Dry-run vault signing without actually signing the PSBT. This is useful for debugging vault signing issues. Arguments: 1. psbt (string, required) The base64-encoded PSBT Result: { (json object) "num_inputs" : n, (numeric) Total number of inputs in the PSBT "num_vault_inputs" : n, (numeric) Number of inputs that are vault scripts "vault_inputs" : [ (json array) Details of vault inputs { (json object) "index" : n, (numeric) Input index "scriptPubKey" : "hex", (string) The scriptPubKey being spent "is_registered" : true|false, (boolean) Whether this vault is registered "can_sign" : true|false, (boolean) Whether wallet can provide signing data "output_key" : "hex", (string, optional) Vault output key if registered "contract_id" : "str", (string, optional) Contract ID if registered "role" : "str", (string, optional) Vault role if registered "num_leaves" : n, (numeric, optional) Number of tapscript leaves "has_spenddata" : true|false (boolean, optional) Whether tr_spenddata is available }, ... ] } Examples: > bitcoin-cli vaultsigndryrun "cHNidP8BAH..." > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "vaultsigndryrun", "params": ["cHNidP8BAH..."]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
vaultsigndryrun(psbt: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"vaultsigndryrun","params":["\"<psbt>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| psbt | string | yes | The base64-encoded PSBT |
Result
Type: any
{ (json object) "num_inputs" : n, (numeric) Total number of inputs in the PSBT "num_vault_inputs" : n, (numeric) Number of inputs that are vault scripts "vault_inputs" : [ (json array) Details of vault inputs { (json object) "index" : n, (numeric) Input index "scriptPubKey" : "hex", (string) The scriptPubKey being spent "is_registered" : true|false, (boolean) Whether this vault is registered "can_sign" : true|false, (boolean) Whether wallet can provide signing data "output_key" : "hex", (string, optional) Vault output key if registered "contract_id" : "str", (string, optional) Contract ID if registered "role" : "str", (string, optional) Vault role if registered "num_leaves" : n, (numeric, optional) Number of tapscript leaves "has_spenddata" : true|false (boolean, optional) Whether tr_spenddata is available }, ... ] }
Source: services/core-node/bcore/src/wallet/rpc/vaults.cpp:121
C++ symbol: vaultsigndryrun