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

Function param_txid

common/json_param.c:786–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786struct command_result *param_txid(struct command *cmd,
787 const char *name,
788 const char *buffer,
789 const jsmntok_t *tok,
790 struct bitcoin_txid **txid)
791{
792 *txid = tal(cmd, struct bitcoin_txid);
793 if (json_to_txid(buffer, tok, *txid))
794 return NULL;
795 return command_fail_badparam(cmd, name, buffer, tok,
796 "should be a txid");
797}
798
799struct command_result *param_bitcoin_address(struct command *cmd,
800 const char *name,

Callers 1

param_unreleased_txidFunction · 0.85

Calls 2

command_fail_badparamFunction · 0.85
json_to_txidFunction · 0.70

Tested by

no test coverage detected