Struct aptos_vm::transaction_metadata::TransactionMetadata
source · [−]pub struct TransactionMetadata {
pub sender: AccountAddress,
pub authentication_key_preimage: Vec<u8>,
pub secondary_signers: Vec<AccountAddress>,
pub secondary_authentication_key_preimages: Vec<Vec<u8>>,
pub sequence_number: u64,
pub max_gas_amount: GasUnits<GasCarrier>,
pub gas_unit_price: GasPrice<GasCarrier>,
pub transaction_size: AbstractMemorySize<GasCarrier>,
pub expiration_timestamp_secs: u64,
pub chain_id: ChainId,
pub script_hash: Vec<u8>,
}
Fields
sender: AccountAddress
authentication_key_preimage: Vec<u8>
secondary_signers: Vec<AccountAddress>
secondary_authentication_key_preimages: Vec<Vec<u8>>
sequence_number: u64
max_gas_amount: GasUnits<GasCarrier>
gas_unit_price: GasPrice<GasCarrier>
transaction_size: AbstractMemorySize<GasCarrier>
expiration_timestamp_secs: u64
chain_id: ChainId
script_hash: Vec<u8>
Implementations
sourceimpl TransactionMetadata
impl TransactionMetadata
pub fn new(txn: &SignedTransaction) -> Self
pub fn max_gas_amount(&self) -> GasUnits<GasCarrier>
pub fn gas_unit_price(&self) -> GasPrice<GasCarrier>
pub fn sender(&self) -> AccountAddress
pub fn secondary_signers(&self) -> Vec<AccountAddress>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn authentication_key_preimage(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn sequence_number(&self) -> u64
pub fn transaction_size(&self) -> AbstractMemorySize<GasCarrier>
pub fn expiration_timestamp_secs(&self) -> u64
pub fn chain_id(&self) -> ChainId
pub fn is_multi_agent(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TransactionMetadata
impl Send for TransactionMetadata
impl Sync for TransactionMetadata
impl Unpin for TransactionMetadata
impl UnwindSafe for TransactionMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more