MCPcopy Create free account
hub / github.com/ElementsProject/elements / FundTxDoc

Function FundTxDoc

src/wallet/rpc/spend.cpp:416–441  ·  view source on GitHub ↗

Only includes key documentation where the key is snake_case in all RPC methods. MixedCase keys can be added later.

Source from the content-addressed store, hash-verified

414
415// Only includes key documentation where the key is snake_case in all RPC methods. MixedCase keys can be added later.
416static std::vector<RPCArg> FundTxDoc()
417{
418 return {
419 {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks"},
420 {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, std::string() + "The fee estimate mode, must be one of (case insensitive):\n"
421 " \"" + FeeModes("\"\n\"") + "\""},
422 {"replaceable", RPCArg::Type::BOOL, RPCArg::DefaultHint{"wallet default"}, "Marks this transaction as BIP125-replaceable.\n"
423 "Allows this transaction to be replaced by a transaction with higher fees"},
424 {"solving_data", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED_NAMED_ARG, "Keys and scripts needed for producing a final transaction with a dummy signature.\n"
425 "Used for fee estimation during coin selection.",
426 {
427 {"pubkeys", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Public keys involved in this transaction.",
428 {
429 {"pubkey", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "A public key"},
430 }},
431 {"scripts", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Scripts involved in this transaction.",
432 {
433 {"script", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "A script"},
434 }},
435 {"descriptors", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Descriptors that provide solving data for this transaction.",
436 {
437 {"descriptor", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "A descriptor"},
438 }},
439 }},
440 };
441}
442
443void FundTransaction(CWallet& wallet, CMutableTransaction& tx, CAmount& fee_out, int& change_position, const UniValue& options, CCoinControl& coinControl, bool override_min_fee)
444{

Callers 3

fundrawtransactionFunction · 0.85
sendFunction · 0.85
walletcreatefundedpsbtFunction · 0.85

Calls 1

FeeModesFunction · 0.85

Tested by

no test coverage detected