Added kernel page, respect id field in api

This commit is contained in:
aglkm
2024-05-24 15:14:16 +03:00
parent 7aadd85e19
commit 2aaebee5f4
5 changed files with 124 additions and 32 deletions

View File

@@ -111,6 +111,29 @@ impl Block {
}
// Kernel data
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Kernel {
pub height: String,
pub excess: String,
pub ker_type: String,
pub fee: String,
pub raw_data: String,
}
impl Kernel {
pub fn new() -> Kernel {
Kernel {
height: String::new(),
excess: String::new(),
ker_type: String::new(),
fee: String::new(),
raw_data: String::new(),
}
}
}
// Transactions data
#[derive(Debug)]
pub struct Transactions {