TransactionRequest class

A transaction request describes a transaction that is to be sent to the network or otherwise processed.

All fields are optional and may be a promise which resolves to the required type.

Annotations
  • @JS()
  • @anonymous

Constructors

TransactionRequest({String? to, String? value, String? gasLimit, String? gasPrice, String? nonce, String? data})
factory

Properties

data String
The transaction data.
no setter
gasLimit String
The maximum amount of gas this transaction is permitted to use.
no setter
gasPrice String
The price (in wei) per unit of gas this transaction will pay.
no setter
hashCode int
The hash code for this object.
no setterinherited
method String
no setter
nonce String
The nonce for this transaction. This should be set to the number of transactions ever sent from this address.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to String
The address (or ENS name) this transaction it to.
no setter
value String
The amount (in wei) this transaction is sending.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited