pub struct ExtendedTransaction {
pub id: U256,
pub origin: Address,
pub delegator: Option<Address>,
pub size: u32,
pub chain_tag: u8,
pub block_ref: u64,
pub expiration: u32,
pub clauses: Vec<Clause>,
pub gas_price_coef: u8,
pub gas: u64,
pub depends_on: Option<U256>,
pub nonce: u64,
}
Expand description
Extended transaction data
Fields§
§id: U256
Identifier of the transaction
origin: Address
The one who signed the transaction
delegator: Option<Address>
The delegator who paid the gas fee
size: u32
Byte size of the transaction that is RLP encoded
chain_tag: u8
Last byte of genesis block ID
block_ref: u64
8 bytes prefix of some block ID
expiration: u32
Expiration relative to blockRef, in unit block
clauses: Vec<Clause>
Transaction clauses
gas_price_coef: u8
Coefficient used to calculate the final gas price
gas: u64
Max amount of gas can be consumed to execute this transaction
depends_on: Option<U256>
ID of the transaction on which the current transaction depends on. can be null.
nonce: u64
Transaction nonce
Implementations§
Source§impl ExtendedTransaction
impl ExtendedTransaction
Sourcepub fn as_transaction(self) -> Transaction
pub fn as_transaction(self) -> Transaction
Convert to package-compatible Transaction
Trait Implementations§
Source§impl Clone for ExtendedTransaction
impl Clone for ExtendedTransaction
Source§fn clone(&self) -> ExtendedTransaction
fn clone(&self) -> ExtendedTransaction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtendedTransaction
impl Debug for ExtendedTransaction
Source§impl<'de> Deserialize<'de> for ExtendedTransaction
impl<'de> Deserialize<'de> for ExtendedTransaction
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExtendedTransaction
impl PartialEq for ExtendedTransaction
Source§impl Serialize for ExtendedTransaction
impl Serialize for ExtendedTransaction
impl StructuralPartialEq for ExtendedTransaction
Auto Trait Implementations§
impl Freeze for ExtendedTransaction
impl RefUnwindSafe for ExtendedTransaction
impl Send for ExtendedTransaction
impl Sync for ExtendedTransaction
impl Unpin for ExtendedTransaction
impl UnwindSafe for ExtendedTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more