| 418 | } |
| 419 | |
| 420 | static void json_add_utxos(struct json_stream *response, |
| 421 | struct wallet *wallet, |
| 422 | struct utxo **utxos) |
| 423 | { |
| 424 | for (size_t i = 0; i < tal_count(utxos); i++) |
| 425 | json_add_utxo(response, NULL, wallet, utxos[i]); |
| 426 | } |
| 427 | |
| 428 | static struct command_result *json_listfunds(struct command *cmd, |
| 429 | const char *buffer, |
no test coverage detected