pub struct SearchTransactionsRequest {Show 13 fields
pub network_identifier: NetworkIdentifier,
pub operator: Option<Operator>,
pub max_block: Option<i64>,
pub offset: Option<i64>,
pub limit: Option<i64>,
pub transaction_identifier: Option<TransactionIdentifier>,
pub account_identifier: Option<AccountIdentifier>,
pub coin_identifier: Option<CoinIdentifier>,
pub currency: Option<Currency>,
pub status: Option<String>,
pub type: Option<String>,
pub address: Option<String>,
pub success: Option<bool>,
}
Expand description
SearchTransactionsRequest : SearchTransactionsRequest is used to search for transactions matching a set of provided conditions in canonical blocks.
Fields§
§network_identifier: NetworkIdentifier
§operator: Option<Operator>
§max_block: Option<i64>
max_block is the largest block index to consider when searching for transactions. If this field is not populated, the current block is considered the max_block. If you do not specify a max_block, it is possible a newly synced block will interfere with paginated transaction queries (as the offset could become invalid with newly added rows).
offset: Option<i64>
offset is the offset into the query result to start returning transactions. If any search conditions are changed, the query offset will change and you must restart your search iteration.
limit: Option<i64>
limit is the maximum number of transactions to return in one call. The implementation may return <= limit transactions.
transaction_identifier: Option<TransactionIdentifier>
§account_identifier: Option<AccountIdentifier>
§coin_identifier: Option<CoinIdentifier>
§currency: Option<Currency>
§status: Option<String>
status is the network-specific operation type.
type: Option<String>
type is the network-specific operation type.
address: Option<String>
address is AccountIdentifier.Address. This is used to get all transactions related to an AccountIdentifier.Address, regardless of SubAccountIdentifier.
success: Option<bool>
success is a synthetic condition populated by parsing network-specific operation statuses (using the mapping provided in /network/options
).
Implementations§
source§impl SearchTransactionsRequest
impl SearchTransactionsRequest
sourcepub fn new(network_identifier: NetworkIdentifier) -> SearchTransactionsRequest
pub fn new(network_identifier: NetworkIdentifier) -> SearchTransactionsRequest
SearchTransactionsRequest is used to search for transactions matching a set of provided conditions in canonical blocks.
Trait Implementations§
source§impl Clone for SearchTransactionsRequest
impl Clone for SearchTransactionsRequest
source§fn clone(&self) -> SearchTransactionsRequest
fn clone(&self) -> SearchTransactionsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchTransactionsRequest
impl Debug for SearchTransactionsRequest
source§impl Default for SearchTransactionsRequest
impl Default for SearchTransactionsRequest
source§fn default() -> SearchTransactionsRequest
fn default() -> SearchTransactionsRequest
source§impl<'de> Deserialize<'de> for SearchTransactionsRequest
impl<'de> Deserialize<'de> for SearchTransactionsRequest
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>,
source§impl PartialEq<SearchTransactionsRequest> for SearchTransactionsRequest
impl PartialEq<SearchTransactionsRequest> for SearchTransactionsRequest
source§fn eq(&self, other: &SearchTransactionsRequest) -> bool
fn eq(&self, other: &SearchTransactionsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.