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

Function json_add_outpoint

common/json_stream.c:469–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void json_add_outpoint(struct json_stream *result, const char *fieldname,
470 const struct bitcoin_outpoint *out)
471{
472 char hex[hex_str_size(sizeof(out->txid))];
473 bitcoin_txid_to_hex(&out->txid, hex, sizeof(hex));
474 json_add_str_fmt(result, fieldname, "%s:%d", hex, out->n);
475}
476
477void json_add_short_channel_id(struct json_stream *response,
478 const char *fieldname,

Callers 8

txprepare_continueFunction · 0.85
build_utxopsbt_requestFunction · 0.85
json_add_chain_eventFunction · 0.85
json_utxo_depositFunction · 0.85
json_utxo_spendFunction · 0.85
json_add_income_eventFunction · 0.85

Calls 3

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85
json_add_str_fmtFunction · 0.85

Tested by

no test coverage detected