search over unspent outputs

This commit is contained in:
aglkm
2024-06-04 16:33:50 +03:00
parent 2adb567ce7
commit 814722fdfb
5 changed files with 155 additions and 7 deletions

View File

@@ -133,6 +133,29 @@ impl Kernel {
}
// Output data
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Output {
pub height: String,
pub commit: String,
pub out_type: String,
pub status: String,
pub raw_data: String,
}
impl Output {
pub fn new() -> Output {
Output {
height: String::new(),
commit: String::new(),
out_type: String::new(),
status: String::new(),
raw_data: String::new(),
}
}
}
// Transactions data
#[derive(Debug)]
pub struct Transactions {