btcd icon indicating copy to clipboard operation
btcd copied to clipboard

API to get TX and UTXO proofs for SVP

Open robert-zaremba opened this issue 1 year ago • 3 comments

Is there an easy way to get TX and UTXO proof using CLI or RPC? We need it to use it with an SVP.

Bitcoind has gettxoutproof

robert-zaremba avatar Dec 16 '24 14:12 robert-zaremba

btcd doesn't yet have an implementation of gettxoutproof. Contributions accepted to add one.

Roasbeef avatar Dec 16 '24 17:12 Roasbeef

So there is no way I can get UTXO proof from btcd node ?

robert-zaremba avatar Dec 16 '24 22:12 robert-zaremba

looks like it's in btcd/btcjson

https://github.com/btcsuite/btcd/blob/cc26860b40265e1332cca8748c5dbaf3c81cc094/btcjson/chainsvrcmds.go#L692-L709

w/test

https://github.com/btcsuite/btcd/blob/cc26860b40265e1332cca8748c5dbaf3c81cc094/btcjson/chainsvrcmds_test.go#L924-L935

hbdc-BtcFixesThis avatar Oct 30 '25 03:10 hbdc-BtcFixesThis