pub struct ListSinceBlock {
pub transactions: Vec<ListSinceBlockTransaction>,
pub removed: Vec<ListSinceBlockTransaction>,
pub last_block: String,
}
Expand description
Result of the JSON-RPC method listsinceblock
.
listsinceblock ( “blockhash” target_confirmations include_watchonly include_removed )
Get all transactions in blocks since block
blockhash
, or all transactions if omitted. If “blockhash” is no longer a part of the main chain, transactions from the fork point onward are included. Additionally, if include_removed is set, transactions affecting the wallet which were removed are returned in the “removed” array.
Fields§
§transactions: Vec<ListSinceBlockTransaction>
All the transactions.
removed: Vec<ListSinceBlockTransaction>
Only present if include_removed=true
.
Note: transactions that were re-added in the active chain will appear as-is in this array, and may thus have a positive confirmation count.
last_block: String
The hash of the block (target_confirmations-1) from the best block on the main chain.
This is typically used to feed back into listsinceblock the next time you call it. So you would generally use a target_confirmations of say 6, so you will be continually re-notified of transactions until they’ve reached 6 confirmations plus any new ones.
Implementations§
Source§impl ListSinceBlock
impl ListSinceBlock
Sourcepub fn into_model(self) -> Result<ListSinceBlock, ListSinceBlockError>
pub fn into_model(self) -> Result<ListSinceBlock, ListSinceBlockError>
Converts version specific type to a version nonspecific, more strongly typed type.
Trait Implementations§
Source§impl Clone for ListSinceBlock
impl Clone for ListSinceBlock
Source§fn clone(&self) -> ListSinceBlock
fn clone(&self) -> ListSinceBlock
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more