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

Function json_add_txid

common/json_stream.c:451–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void json_add_txid(struct json_stream *result, const char *fieldname,
452 const struct bitcoin_txid *txid)
453{
454 char hex[hex_str_size(sizeof(*txid))];
455
456 bitcoin_txid_to_hex(txid, hex, sizeof(hex));
457 json_add_string(result, fieldname, hex);
458}
459
460void json_add_bitcoin_blkid(struct json_stream *result, const char *fieldname,
461 const struct bitcoin_blkid *blkid)

Callers 15

json_add_utxoFunction · 0.85
json_listfundsFunction · 0.85
process_utxo_resultFunction · 0.85
json_transaction_detailsFunction · 0.85
sendpsbt_doneFunction · 0.85
json_dev_finalizepsbtFunction · 0.85
json_add_reservestatusFunction · 0.85
handle_tx_broadcastFunction · 0.85
NON_NULL_ARGSFunction · 0.85
json_sign_last_txFunction · 0.85

Calls 3

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85
json_add_stringFunction · 0.70

Tested by

no test coverage detected