Struct cryptoapis::models::get_transaction_details_by_transaction_idri::GetTransactionDetailsByTransactionIdri [−][src]
pub struct GetTransactionDetailsByTransactionIdri { pub index: i32, pub mined_in_block_hash: Option<String>, pub mined_in_block_height: Option<i32>, pub recipients: Vec<GetTransactionDetailsByTransactionIdriRecipients>, pub senders: Vec<GetTransactionDetailsByTransactionIdriSenders>, pub timestamp: i32, pub transaction_hash: String, pub transaction_id: String, pub fee: Box<GetTransactionDetailsByTransactionIdriFee>, pub is_confirmed: bool, pub blockchain_specific: Box<GetTransactionDetailsByTransactionIdribs>, }
Fields
index: i32
Represents the index position of the transaction in the specific block.
mined_in_block_hash: Option<String>
Represents the hash of the block where this transaction was mined/confirmed for first time. The hash is defined as a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.
mined_in_block_height: Option<i32>
Represents the hight of the block where this transaction was mined/confirmed for first time. The height is defined as the number of blocks in the blockchain preceding this specific block.
recipients: Vec<GetTransactionDetailsByTransactionIdriRecipients>
Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.
senders: Vec<GetTransactionDetailsByTransactionIdriSenders>
Represents a list of sender addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.
timestamp: i32
Defines the exact date/time in Unix Timestamp when this transaction was mined, confirmed or first seen in Mempool, if it is unconfirmed.
transaction_hash: String
Represents the same as transactionId
for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols hash
is different from transactionId
for SegWit transactions.
transaction_id: String
Represents the unique identifier of a transaction, i.e. it could be transactionId
in UTXO-based protocols like Bitcoin, and transaction hash
in Ethereum blockchain.
fee: Box<GetTransactionDetailsByTransactionIdriFee>
is_confirmed: bool
Defines whether the transaction is mined/confirmed or not. If it is "false", it means the transaction is still in the Mempool waiting to be included in a block. Value "true" means that this transaction is already confirmed and included in a block.
blockchain_specific: Box<GetTransactionDetailsByTransactionIdribs>
Implementations
pub fn new(
index: i32,
recipients: Vec<GetTransactionDetailsByTransactionIdriRecipients>,
senders: Vec<GetTransactionDetailsByTransactionIdriSenders>,
timestamp: i32,
transaction_hash: String,
transaction_id: String,
fee: GetTransactionDetailsByTransactionIdriFee,
is_confirmed: bool,
blockchain_specific: GetTransactionDetailsByTransactionIdribs
) -> GetTransactionDetailsByTransactionIdri
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more