| 938 | } |
| 939 | |
| 940 | struct command_result *param_psbt(struct command *cmd, |
| 941 | const char *name, |
| 942 | const char *buffer, |
| 943 | const jsmntok_t *tok, |
| 944 | struct wally_psbt **psbt) |
| 945 | { |
| 946 | *psbt = psbt_from_b64(cmd, buffer + tok->start, tok->end - tok->start); |
| 947 | if (*psbt) |
| 948 | return NULL; |
| 949 | |
| 950 | return command_fail_badparam(cmd, name, buffer, tok, |
| 951 | "Expected a PSBT"); |
| 952 | } |
| 953 | |
| 954 | struct command_result *param_outpoint_arr(struct command *cmd, |
| 955 | const char *name, |
nothing calls this directly
no test coverage detected