json: add a param parser for a txid

This commit is contained in:
lisa neigut
2019-06-05 14:58:53 +09:30
committed by Rusty Russell
parent c40250ad0b
commit a4a193840f
5 changed files with 33 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ struct command_result *param_pubkey(struct command *cmd, const char *name,
const char *buffer, const jsmntok_t *tok,
struct pubkey **pubkey);
struct command_result *param_txid(struct command *cmd, const char *name,
const char *buffer, const jsmntok_t *tok,
struct bitcoin_txid **txid);
/* Makes sure *id is valid. */
struct command_result *param_node_id(struct command *cmd,
const char *name,