| 4 | |
| 5 | |
| 6 | void json_add_onchain_fee(struct json_stream *out, |
| 7 | struct onchain_fee *fee) |
| 8 | { |
| 9 | json_object_start(out, NULL); |
| 10 | json_add_string(out, "account", fee->acct_name); |
| 11 | json_add_string(out, "type", "onchain_fee"); |
| 12 | json_add_string(out, "tag", "onchain_fee"); |
| 13 | json_add_amount_msat_only(out, "credit_msat", fee->credit); |
| 14 | json_add_amount_msat_only(out, "debit_msat", fee->debit); |
| 15 | json_add_string(out, "currency", fee->currency); |
| 16 | json_add_u64(out, "timestamp", fee->timestamp); |
| 17 | json_add_txid(out, "txid", &fee->txid); |
| 18 | json_object_end(out); |
| 19 | } |
| 20 |
no test coverage detected