pub struct UserTransaction {Show 19 fields
pub version: String,
pub hash: String,
pub state_change_hash: String,
pub event_root_hash: String,
pub state_checkpoint_hash: Option<String>,
pub gas_used: String,
pub success: bool,
pub vm_status: String,
pub accumulator_root_hash: String,
pub changes: Vec<WriteSetChange>,
pub sender: String,
pub sequence_number: String,
pub max_gas_amount: String,
pub gas_unit_price: String,
pub expiration_timestamp_secs: String,
pub payload: Box<TransactionPayload>,
pub signature: Option<Box<TransactionSignature>>,
pub events: Vec<Event>,
pub timestamp: String,
}Expand description
UserTransaction : A transaction submitted by a user to change the state of the blockchain
Fields§
§version: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
hash: String§state_change_hash: String§event_root_hash: String§state_checkpoint_hash: Option<String>§gas_used: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
success: boolWhether the transaction was successful
vm_status: StringThe VM status of the transaction, can tell useful information in a failure
accumulator_root_hash: String§changes: Vec<WriteSetChange>Final state of resources changed by the transaction
sender: StringA hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
sequence_number: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
max_gas_amount: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
gas_unit_price: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
expiration_timestamp_secs: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
payload: Box<TransactionPayload>§signature: Option<Box<TransactionSignature>>§events: Vec<Event>Events generated by the transaction
timestamp: StringA string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
Implementations§
Source§impl UserTransaction
impl UserTransaction
Sourcepub fn new(
version: String,
hash: String,
state_change_hash: String,
event_root_hash: String,
gas_used: String,
success: bool,
vm_status: String,
accumulator_root_hash: String,
changes: Vec<WriteSetChange>,
sender: String,
sequence_number: String,
max_gas_amount: String,
gas_unit_price: String,
expiration_timestamp_secs: String,
payload: TransactionPayload,
events: Vec<Event>,
timestamp: String,
) -> UserTransaction
pub fn new( version: String, hash: String, state_change_hash: String, event_root_hash: String, gas_used: String, success: bool, vm_status: String, accumulator_root_hash: String, changes: Vec<WriteSetChange>, sender: String, sequence_number: String, max_gas_amount: String, gas_unit_price: String, expiration_timestamp_secs: String, payload: TransactionPayload, events: Vec<Event>, timestamp: String, ) -> UserTransaction
A transaction submitted by a user to change the state of the blockchain
Trait Implementations§
Source§impl Clone for UserTransaction
impl Clone for UserTransaction
Source§fn clone(&self) -> UserTransaction
fn clone(&self) -> UserTransaction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserTransaction
impl Debug for UserTransaction
Source§impl Default for UserTransaction
impl Default for UserTransaction
Source§fn default() -> UserTransaction
fn default() -> UserTransaction
Source§impl<'de> Deserialize<'de> for UserTransaction
impl<'de> Deserialize<'de> for UserTransaction
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 for UserTransaction
impl PartialEq for UserTransaction
Source§fn eq(&self, other: &UserTransaction) -> bool
fn eq(&self, other: &UserTransaction) -> bool
self and other values to be equal, and is used by ==.