Update transaction.id_from_pos response for API compliance

This commit is contained in:
JHB 2026-01-19 15:11:15 -05:00 committed by Roman Zeyde
parent 24ed1437f3
commit 66b1de65c0

View file

@ -481,9 +481,9 @@ impl Rpc {
let txid: Txid = txids[tx_pos];
if merkle {
let proof = Proof::create(&txids, tx_pos);
Ok(json!({"tx_id": txid, "merkle": proof.to_hex()}))
Ok(json!({"tx_hash": txid, "merkle": proof.to_hex()}))
} else {
Ok(json!({ "tx_id": txid }))
Ok(json!({ "tx_hash": txid }))
}
}