Skip to content

Commit 959546b

Browse files
committed
add psbt finalize call in big executable
1 parent 883132e commit 959546b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/big.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ fn main() {
3737
println!("{:?}", h.lift());
3838
println!("{:?}", h.script_pubkey());
3939
println!("{:?}", h.address(bitcoin::Network::Bitcoin));
40+
41+
let psbt: bitcoin::Psbt = i.parse().unwrap();
42+
let psbt = psbt.finalize(&secp).unwrap();
43+
let tx = psbt.extract_tx().unwrap();
44+
println!("{:?}", tx);
4045
}
4146

4247
fn use_descriptor<K: MiniscriptKey>(d: Descriptor<K>) {

0 commit comments

Comments
 (0)