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

Function param_psbt

common/json_param.c:825–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825struct command_result *param_psbt(struct command *cmd,
826 const char *name,
827 const char *buffer,
828 const jsmntok_t *tok,
829 struct wally_psbt **psbt)
830{
831 *psbt = psbt_from_b64(cmd, buffer + tok->start, tok->end - tok->start);
832 if (*psbt)
833 return NULL;
834
835 return command_fail_badparam(cmd, name, buffer, tok,
836 "Expected a PSBT");
837}
838
839struct command_result *param_outpoint_arr(struct command *cmd,
840 const char *name,

Callers

nothing calls this directly

Calls 2

psbt_from_b64Function · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected