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

Function param_outpoint

common/json_param.c:901–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901struct command_result *param_outpoint(struct command *cmd,
902 const char *name,
903 const char *buffer,
904 const jsmntok_t *tok,
905 struct bitcoin_outpoint **outp)
906{
907 *outp = tal(cmd, struct bitcoin_outpoint);
908 if (json_to_outpoint(buffer, tok, *outp))
909 return NULL;
910 return command_fail_badparam(cmd, name, buffer, tok,
911 "should be a txid:outnum");
912}
913
914struct command_result *param_bitcoin_address(struct command *cmd,
915 const char *name,

Callers

nothing calls this directly

Calls 2

json_to_outpointFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected