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

Function jsonfmt_amount_sat

plugins/funder.c:1616–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1614}
1615
1616static bool jsonfmt_amount_sat(struct command *cmd,
1617 struct json_stream *js,
1618 const char *fieldname,
1619 struct amount_sat *sats)
1620{
1621 /* We do not expose raw numbers for sats fields: raw numbers
1622 * in our interface means MSAT! */
1623 json_add_str_fmt(js, fieldname, "%"PRIu64"sat", sats->satoshis /* Raw: fmt */);
1624 return true;
1625}
1626
1627static char *option_lease_fee_base(struct command *cmd, const char *arg,
1628 bool check_only,

Callers

nothing calls this directly

Calls 1

json_add_str_fmtFunction · 0.85

Tested by

no test coverage detected