pub struct TransactionRequest {
    pub action: Action,
    pub data: Bytes,
    pub gas: Option<U256>,
    pub gas_price: Option<U256>,
    pub nonce: Option<U256>,
}
Expand description

The data required for a Client to create a transaction.

Gas limit, gas price, or nonce can be set explicitly, e.g. to create service transactions with zero gas price, or sequences of transactions with consecutive nonces. Added for AuRa needs.

Fields

action: Action

Transaction action

data: Bytes

Transaction data

gas: Option<U256>

Transaction gas usage

gas_price: Option<U256>

Transaction gas price

nonce: Option<U256>

Transaction nonce

Implementations

Creates a request to call a contract at address with the specified call data.

Sets a gas limit. If this is not specified, a sensible default is used.

Sets a gas price. If this is not specified or None, a sensible default is used.

Sets a nonce. If this is not specified, the appropriate latest nonce for the author is used.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.