Struct block::Transaction
source · pub struct Transaction {
pub nonce: U256,
pub gas_price: Gas,
pub gas_limit: Gas,
pub action: TransactionAction,
pub value: U256,
pub signature: TransactionSignature,
pub input: Vec<u8>,
}
Fields§
§nonce: U256
§gas_price: Gas
§gas_limit: Gas
§action: TransactionAction
§value: U256
§signature: TransactionSignature
§input: Vec<u8>
Implementations§
source§impl Transaction
impl Transaction
pub fn caller(&self) -> Result<Address, Error>
pub fn address(&self) -> Result<Address, Error>
pub fn is_basic_valid<P: SignaturePatch, Q: ValidationPatch>(&self) -> bool
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl Decodable for Transaction
impl Decodable for Transaction
source§fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
source§impl Encodable for Transaction
impl Encodable for Transaction
source§impl From<Transaction> for UnsignedTransaction
impl From<Transaction> for UnsignedTransaction
source§fn from(val: Transaction) -> UnsignedTransaction
fn from(val: Transaction) -> UnsignedTransaction
Converts to this type from the input type.