MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_add_onchain_fee

Function json_add_onchain_fee

plugins/bkpr/onchain_fee.c:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6void 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

Callers 1

json_list_account_eventsFunction · 0.85

Calls 6

json_object_startFunction · 0.50
json_add_stringFunction · 0.50
json_add_u64Function · 0.50
json_add_txidFunction · 0.50
json_object_endFunction · 0.50

Tested by

no test coverage detected