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

Function json_add_amount_sat

common/json_stream.c:628–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void json_add_amount_sat(struct json_stream *result,
629 const char *satfieldname,
630 struct amount_sat sat)
631{
632 assert(strends(satfieldname, "_sat") || streq(satfieldname, "sat"));
633 json_add_u64(result, satfieldname, sat.satoshis); /* Raw: low-level helper */
634}
635
636void json_add_amount_sat_msat(struct json_stream *result,
637 const char *msatfieldname,

Callers

nothing calls this directly

Calls 2

strendsFunction · 0.85
json_add_u64Function · 0.85

Tested by

no test coverage detected