pub struct GetChainTxStatsResponse {
pub time: u64,
pub txcount: Option<u64>,
pub txrate: Option<u64>,
pub window_block_count: u64,
pub window_final_block_hash: String,
pub window_final_block_height: u64,
pub window_interval: Option<u64>,
pub window_tx_count: Option<u64>,
}Expand description
Response for the GetChainTxStats RPC method
Fields§
§time: u64The timestamp for the final block in the window, expressed in UNIX epoch time
txcount: Option<u64>The total number of transactions in the chain up to that point, if known. It may be unknown when using assumeutxo.
txrate: Option<u64>The average rate of transactions per second in the window. Only returned if “window_interval” is > 0 and if window_tx_count exists.
window_block_count: u64Size of the window in number of blocks
window_final_block_hash: StringThe hash of the final block in the window
window_final_block_height: u64The height of the final block in the window.
window_interval: Option<u64>The elapsed time in the window in seconds. Only returned if “window_block_count” is > 0
window_tx_count: Option<u64>The number of transactions in the window. Only returned if “window_block_count” is > 0 and if txcount exists for the start and end of the window.
Trait Implementations§
Source§impl Clone for GetChainTxStatsResponse
impl Clone for GetChainTxStatsResponse
Source§fn clone(&self) -> GetChainTxStatsResponse
fn clone(&self) -> GetChainTxStatsResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetChainTxStatsResponse
impl Debug for GetChainTxStatsResponse
Source§impl<'de> Deserialize<'de> for GetChainTxStatsResponse
impl<'de> Deserialize<'de> for GetChainTxStatsResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetChainTxStatsResponse
impl PartialEq for GetChainTxStatsResponse
Source§impl Serialize for GetChainTxStatsResponse
impl Serialize for GetChainTxStatsResponse
impl StructuralPartialEq for GetChainTxStatsResponse
Auto Trait Implementations§
impl Freeze for GetChainTxStatsResponse
impl RefUnwindSafe for GetChainTxStatsResponse
impl Send for GetChainTxStatsResponse
impl Sync for GetChainTxStatsResponse
impl Unpin for GetChainTxStatsResponse
impl UnwindSafe for GetChainTxStatsResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more