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

Function jsonfmt_amount_sat

plugins/funder.c:1657–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1655}
1656
1657static bool jsonfmt_amount_sat(struct command *cmd,
1658 struct json_stream *js,
1659 const char *fieldname,
1660 struct amount_sat *sats)
1661{
1662 /* We do not expose raw numbers for sats fields: raw numbers
1663 * in our interface means MSAT! */
1664 json_add_str_fmt(js, fieldname, "%"PRIu64"sat", sats->satoshis /* Raw: fmt */);
1665 return true;
1666}
1667
1668static char *option_lease_fee_base(struct command *cmd, const char *arg,
1669 bool check_only,

Callers

nothing calls this directly

Calls 1

json_add_str_fmtFunction · 0.85

Tested by

no test coverage detected