MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_txprepare

Function json_txprepare

plugins/txprepare.c:393–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393static struct command_result *json_txprepare(struct command *cmd,
394 const char *buffer,
395 const jsmntok_t *params)
396{
397 struct txprepare *txp = tal(cmd, struct txprepare);
398 const char *feerate;
399 struct bitcoin_outpoint *utxos;
400 unsigned int *minconf;
401
402 if (!param(cmd, buffer, params,
403 p_req("outputs", param_outputs, txp),
404 p_opt("feerate", param_string, &feerate),
405 p_opt_def("minconf", param_number, &minconf, 1),
406 p_opt("utxos", param_outpoint_arr, &utxos),
407 NULL))
408 return command_param_failed();
409
410 return txprepare_continue(cmd, txp, feerate, minconf, utxos, false);
411}
412
413/* Called after we've unreserved the inputs. */
414static struct command_result *unreserve_done(struct command *cmd,

Callers

nothing calls this directly

Calls 3

txprepare_continueFunction · 0.85
command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected