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

Function json_add_sats

common/json_stream.c:646–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646void json_add_sats(struct json_stream *result,
647 const char *fieldname,
648 struct amount_sat sat)
649{
650 json_add_string(result, fieldname, take(fmt_amount_sat(NULL, sat)));
651}
652
653void json_add_secret(struct json_stream *response, const char *fieldname,
654 const struct secret *secret)

Callers 4

txprepare_continueFunction · 0.85
getutxoutFunction · 0.85
onchain_wallet_fundFunction · 0.85
splice_initFunction · 0.85

Calls 2

json_add_stringFunction · 0.70
fmt_amount_satFunction · 0.70

Tested by

no test coverage detected