Transaction class
Constructors
Transaction ({EthereumAddress ? from , EthereumAddress ? to , EtherAmount ? value , BigInt ? gas , BigInt ? maxGas , BigInt ? gasPrice , Uint8List ? data , int ? nonce , BigInt ? maxFeePerGas , BigInt ? maxPriorityFeePerGas })
Transaction.callContract ({required DeployedContract contract , required ContractFunction function , required List parameters , EthereumAddress ? from , BigInt ? gas , BigInt ? maxGas , BigInt ? gasPrice , EtherAmount ? value , int ? nonce , BigInt ? maxFeePerGas , BigInt ? maxPriorityFeePerGas })
Constructs a transaction that can be used to call a contract function.
Properties
data
→ Uint8List ?
For transactions that call a contract function or create a contract,
contains the hashed function name and the encoded parameters or the
compiled contract code, respectively.
final
from
→ EthereumAddress ?
The address of the sender of this transaction.
final
gas
→ BigInt ?
final
gasPrice
→ BigInt ?
How much ether to spend on a single unit of gas. Can be null, in which
case the rpc server will choose this value.
final
hashCode
→ int
The hash code for this object.
no setter inherited
isEIP1559
→ bool
no setter
maxFeePerGas
→ BigInt ?
final
maxGas
→ BigInt ?
The maximum amount of gas to spend.
final
maxPriorityFeePerGas
→ BigInt ?
final
nonce
→ int ?
The nonce of this transaction. A nonce is incremented per sender and
transaction to make sure the same transaction can't be sent more than
once.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
to
→ EthereumAddress ?
The recipient of this transaction, or null for transactions that create a
contract.
final
value
→ EtherAmount ?
How much ether to send to to . This can be null, as some transactions
that call a contracts method won't have to send ether.
final