diff --git a/chain/wasm/src/builders/tx_builder.rs b/chain/wasm/src/builders/tx_builder.rs index 1d084053..1d0e73f4 100644 --- a/chain/wasm/src/builders/tx_builder.rs +++ b/chain/wasm/src/builders/tx_builder.rs @@ -40,6 +40,14 @@ impl TransactionUnspentOutput { ) .into() } + + pub fn input(&self) -> TransactionInput { + self.0.input.clone().into() + } + + pub fn output(&self) -> TransactionOutput { + self.0.output.clone().into() + } } #[wasm_bindgen]