1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
crate::ix!();
pub fn decode_hex_tx(
tx: &mut MutableTransaction,
hex_tx: &String,
try_no_witness: Option<bool>,
try_witness: Option<bool>) -> bool {
let try_no_witness: bool = try_no_witness.unwrap_or(false);
let try_witness: bool = try_witness.unwrap_or(true);
todo!();
/*
*/
}
pub fn encode_hex_tx(
tx: &Transaction,
serialize_flags: Option<i32>) -> String {
let serialize_flags: i32 = serialize_flags.unwrap_or(0);
todo!();
/*
*/
}
pub fn encode_destination(dest: &TxDestination) -> String {
todo!();
/*
return std::visit(DestinationEncoder(Params()), dest);
*/
}
/**
| Verbose level for block's transaction
|
*/
pub enum TxVerbosity {
/**
Only TXID for each block's transaction
*/
SHOW_TXID,
/**
Include TXID, inputs, outputs, and other
common block's transaction information
*/
SHOW_DETAILS,
/**
The same as previous option with information
about prevouts if available
*/
SHOW_DETAILS_AND_PREVOUT,
}