We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4de813 commit ac3d79cCopy full SHA for ac3d79c
subprojects/gdk_rust/gdk_common/src/model.rs
@@ -317,6 +317,10 @@ pub struct TransactionMeta {
317
// The utxos used in the transaction
318
#[serde(default)]
319
pub used_utxos: Vec<UnspentOutput>,
320
+ #[serde(rename = "transaction_version")]
321
+ pub version: u32,
322
+ #[serde(rename = "transaction_locktime")]
323
+ pub lock_time: u32,
324
}
325
326
impl From<BETransaction> for TransactionMeta {
@@ -349,6 +353,8 @@ impl From<BETransaction> for TransactionMeta {
349
353
vsize: (weight as f32 / 4.0) as usize,
350
354
size: transaction.get_size(),
351
355
used_utxos: vec![],
356
+ version: transaction.version(),
357
+ lock_time: transaction.lock_time(),
352
358
359
360
0 commit comments