| 608 | } |
| 609 | |
| 610 | void json_add_psbt(struct json_stream *stream, |
| 611 | const char *fieldname, |
| 612 | const struct wally_psbt *psbt TAKES) |
| 613 | { |
| 614 | const char *psbt_b64; |
| 615 | psbt_b64 = fmt_wally_psbt(NULL, psbt); |
| 616 | json_add_string(stream, fieldname, take(psbt_b64)); |
| 617 | tal_free_if_taken(psbt); |
| 618 | } |
| 619 | |
| 620 | void json_add_amount_msat(struct json_stream *result, |
| 621 | const char *msatfieldname, |
no test coverage detected