pub struct Transaction {Show 17 fields
pub hash: String,
pub signature_fragments: String,
pub address: String,
pub value: i64,
pub obsolete_tag: String,
pub timestamp: i64,
pub current_index: usize,
pub last_index: usize,
pub bundle: String,
pub trunk_transaction: String,
pub branch_transaction: String,
pub nonce: String,
pub persistence: bool,
pub tag: String,
pub attachment_timestamp: i64,
pub attachment_timestamp_lower_bound: i64,
pub attachment_timestamp_upper_bound: i64,
}
Expand description
Represents an IOTA transaction
Fields§
§hash: String
Transaction Hash
signature_fragments: String
A signature or a message, both of which may be fragmented over multiple transactions in the bundle.
address: String
Contains either the sender or recipient’s address.
value: i64
Amount of IOTA tokens to deposit to or withdraw from the address
obsolete_tag: String
User-defined tag (soon to be removed)
timestamp: i64
Unix epoch: Seconds since Jan 1, 1970
current_index: usize
Index of a transaction in the bundle
last_index: usize
Index of the last transaction in the bundle
bundle: String
Hash of the bundle
trunk_transaction: String
Trunk transaction hash
branch_transaction: String
Branch transaction hash
nonce: String
Trytes that represent the amount of times a transaction must be hashed to check the proof of work.
persistence: bool
Persistence of transaction
tag: String
User-defined tag
attachment_timestamp: i64
Unix epoch: Milliseconds since Jan 1, 1970 (after POW)
attachment_timestamp_lower_bound: i64
Lower limit of the attachmentTimestamp field (not currently used)
attachment_timestamp_upper_bound: i64
Upper limit of the attachmentTimestamp field (not currently used)
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more