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

Function param_psbt

common/json_param.c:940–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940struct command_result *param_psbt(struct command *cmd,
941 const char *name,
942 const char *buffer,
943 const jsmntok_t *tok,
944 struct wally_psbt **psbt)
945{
946 *psbt = psbt_from_b64(cmd, buffer + tok->start, tok->end - tok->start);
947 if (*psbt)
948 return NULL;
949
950 return command_fail_badparam(cmd, name, buffer, tok,
951 "Expected a PSBT");
952}
953
954struct command_result *param_outpoint_arr(struct command *cmd,
955 const char *name,

Callers

nothing calls this directly

Calls 2

psbt_from_b64Function · 0.85
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected