Struct common_types::transaction::Transaction [−][src]
A set of information describing an externally-originating message call or contract creation operation.
Fields
nonce: U256Nonce.
gas_price: U256Gas price.
gas: U256Gas paid up front for transaction execution.
action: ActionAction, can be either call or contract create.
value: U256Transfered value.
data: Vec<u8>Transaction data.
Implementations
impl Transaction[src]
pub fn rlp_append_unsigned_transaction(
&self,
s: &mut RlpStream,
chain_id: Option<u64>
)[src]
&self,
s: &mut RlpStream,
chain_id: Option<u64>
)
Append object with a without signature into RLP stream
impl Transaction[src]
pub fn hash(&self, chain_id: Option<u64>) -> H256[src]
The message hash of the transaction.
pub fn sign(self, secret: &Secret, chain_id: Option<u64>) -> SignedTransaction[src]
Signs the transaction as coming from sender.
pub fn with_signature(
self,
sig: Signature,
chain_id: Option<u64>
) -> UnverifiedTransaction[src]
self,
sig: Signature,
chain_id: Option<u64>
) -> UnverifiedTransaction
Signs the transaction with signature.
pub fn fake_sign(self, from: Address) -> SignedTransaction[src]
Specify the sender; this won’t survive the serialize/deserialize process, but can be cloned.
Trait Implementations
impl Clone for Transaction[src]
fn clone(&self) -> Transaction[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Transaction[src]
impl Default for Transaction[src]
fn default() -> Transaction[src]
impl Eq for Transaction[src]
impl MallocSizeOf for Transaction[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
impl PartialEq<Transaction> for Transaction[src]
fn eq(&self, other: &Transaction) -> bool[src]
fn ne(&self, other: &Transaction) -> bool[src]
impl StructuralEq for Transaction[src]
impl StructuralPartialEq for Transaction[src]
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MallocSizeOfExt for T where
T: MallocSizeOf, [src]
T: MallocSizeOf,
pub fn malloc_size_of(&self) -> usize[src]
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,