| 823 | } |
| 824 | |
| 825 | struct command_result *param_psbt(struct command *cmd, |
| 826 | const char *name, |
| 827 | const char *buffer, |
| 828 | const jsmntok_t *tok, |
| 829 | struct wally_psbt **psbt) |
| 830 | { |
| 831 | *psbt = psbt_from_b64(cmd, buffer + tok->start, tok->end - tok->start); |
| 832 | if (*psbt) |
| 833 | return NULL; |
| 834 | |
| 835 | return command_fail_badparam(cmd, name, buffer, tok, |
| 836 | "Expected a PSBT"); |
| 837 | } |
| 838 | |
| 839 | struct command_result *param_outpoint_arr(struct command *cmd, |
| 840 | const char *name, |
nothing calls this directly
no test coverage detected