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

Function param_u64

common/json_param.c:500–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500struct command_result *param_u64(struct command *cmd, const char *name,
501 const char *buffer, const jsmntok_t *tok,
502 uint64_t **num)
503{
504 *num = tal(cmd, uint64_t);
505 if (json_to_u64(buffer, tok, *num))
506 return NULL;
507
508 return command_fail_badparam(cmd, name, buffer, tok,
509 "should be an unsigned 64 bit integer");
510}
511
512struct command_result *param_msat(struct command *cmd, const char *name,
513 const char *buffer, const jsmntok_t *tok,

Callers 1

param_u64_nonzeroFunction · 0.50

Calls 2

command_fail_badparamFunction · 0.85
json_to_u64Function · 0.70

Tested by

no test coverage detected