diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-01-12 15:17:29 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-10-03 13:24:14 -0400 |
commit | 928af61cdb2c4de1c3d10e6fda13bbba5ca0bba9 (patch) | |
tree | f3b5346681dfe30ac20141936eb22ce9afe92522 /src | |
parent | e39b5a5e7aa4d015257565ca79dc7b1f7a65e074 (diff) |
allow send rpc take external inputs and solving data
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 9906fb384c..09081943d3 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4286,6 +4286,26 @@ static RPCHelpMan send() }, {"replaceable", RPCArg::Type::BOOL, RPCArg::DefaultHint{"wallet default"}, "Marks this transaction as BIP125 replaceable.\n" "Allows this transaction to be replaced by a transaction with higher fees"}, + {"solving_data", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED_NAMED_ARG, "Keys and scripts needed for producing a final transaction with a dummy signature.\n" + "Used for fee estimation during coin selection.", + { + {"pubkeys", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Public keys involved in this transaction.", + { + {"pubkey", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "A public key"}, + }, + }, + {"scripts", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Scripts involved in this transaction.", + { + {"script", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "A script"}, + }, + }, + {"descriptors", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Descriptors that provide solving data for this transaction.", + { + {"descriptor", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "A descriptor"}, + }, + } + } + }, }, "options"}, }, |