| 784 | } |
| 785 | |
| 786 | struct 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 | |
| 799 | struct command_result *param_bitcoin_address(struct command *cmd, |
| 800 | const char *name, |
no test coverage detected