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

Function json_add_txid

common/json_stream.c:435–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void json_add_txid(struct json_stream *result, const char *fieldname,
436 const struct bitcoin_txid *txid)
437{
438 char hex[hex_str_size(sizeof(*txid))];
439
440 bitcoin_txid_to_hex(txid, hex, sizeof(hex));
441 json_add_string(result, fieldname, hex);
442}
443
444void json_add_outpoint(struct json_stream *result, const char *fieldname,
445 const struct bitcoin_outpoint *out)

Callers 7

sendpsbt_doneFunction · 0.50
finish_txprepareFunction · 0.50
unreserve_doneFunction · 0.50
json_add_onchain_feeFunction · 0.50
json_add_chain_eventFunction · 0.50
json_inspectFunction · 0.50
json_add_income_eventFunction · 0.50

Calls 3

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85
json_add_stringFunction · 0.70

Tested by

no test coverage detected