Struct client_traits::TransactionRequest [−][src]
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.
Fields
action: Action
data: Bytes
gas: Option<U256>
gas_price: Option<U256>
nonce: Option<U256>
Implementations
impl TransactionRequest
[src]
pub fn call(address: Address, data: Bytes) -> TransactionRequest
[src]
Creates a request to call a contract at address
with the specified call data.
pub fn create(data: Bytes) -> TransactionRequest
[src]
Creates a request to create a new contract, with the specified bytecode.
pub fn gas(self, gas: U256) -> TransactionRequest
[src]
Sets a gas limit. If this is not specified, a sensible default is used.
pub fn gas_price(self, gas_price: U256) -> TransactionRequest
[src]
Sets a gas price. If this is not specified, a sensible default is used.
pub fn nonce(self, nonce: U256) -> TransactionRequest
[src]
Sets a nonce. If this is not specified, the appropriate latest nonce for the author is used.
Auto Trait Implementations
impl RefUnwindSafe for TransactionRequest
impl Send for TransactionRequest
impl Sync for TransactionRequest
impl Unpin for TransactionRequest
impl UnwindSafe for TransactionRequest
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,