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

Function param_txid

common/json_param.c:888–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888struct command_result *param_txid(struct command *cmd,
889 const char *name,
890 const char *buffer,
891 const jsmntok_t *tok,
892 struct bitcoin_txid **txid)
893{
894 *txid = tal(cmd, struct bitcoin_txid);
895 if (json_to_txid(buffer, tok, *txid))
896 return NULL;
897 return command_fail_badparam(cmd, name, buffer, tok,
898 "should be a txid");
899}
900
901struct command_result *param_outpoint(struct command *cmd,
902 const char *name,

Callers 1

param_unreleased_txidFunction · 0.85

Calls 2

json_to_txidFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected