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

Function param_sat

common/json_param.c:524–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524struct command_result *param_sat(struct command *cmd, const char *name,
525 const char *buffer, const jsmntok_t *tok,
526 struct amount_sat **sat)
527{
528 *sat = tal(cmd, struct amount_sat);
529 if (parse_amount_sat(*sat, buffer + tok->start, tok->end - tok->start))
530 return NULL;
531
532 return command_fail_badparam(cmd, name, buffer, tok,
533 "should be a satoshi amount");
534}
535
536struct command_result *param_sat_or_all(struct command *cmd, const char *name,
537 const char *buffer, const jsmntok_t *tok,

Callers 1

param_sat_or_allFunction · 0.85

Calls 2

command_fail_badparamFunction · 0.85
parse_amount_satFunction · 0.70

Tested by

no test coverage detected