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: StringTransaction Hash
signature_fragments: StringA signature or a message, both of which may be fragmented over multiple transactions in the bundle.
address: StringContains either the sender or recipient’s address.
value: i64Amount of IOTA tokens to deposit to or withdraw from the address
obsolete_tag: StringUser-defined tag (soon to be removed)
timestamp: i64Unix epoch: Seconds since Jan 1, 1970
current_index: usizeIndex of a transaction in the bundle
last_index: usizeIndex of the last transaction in the bundle
bundle: StringHash of the bundle
trunk_transaction: StringTrunk transaction hash
branch_transaction: StringBranch transaction hash
nonce: StringTrytes that represent the amount of times a transaction must be hashed to check the proof of work.
persistence: boolPersistence of transaction
tag: StringUser-defined tag
attachment_timestamp: i64Unix epoch: Milliseconds since Jan 1, 1970 (after POW)
attachment_timestamp_lower_bound: i64Lower limit of the attachmentTimestamp field (not currently used)
attachment_timestamp_upper_bound: i64Upper 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