Transaction class
- Annotations
Constructors
- Transaction({required num type, required num status, @JsonKey(name: 'block_number') required num blockNumber, @JsonKey(name: 'block_timestamp') required DateTime blockTimestamp, @JsonKey(name: 'transaction_hash') required String transactionHash, @JsonKey(name: 'transaction_index') required num transactionIndex, @JsonKey(name: 'from_address') required String fromAddress, @JsonKey(name: 'to_address') required String toAddress, @BigIntConverter() required Uint256 value, required String? input, required num nonce, @JsonKey(name: 'contract_address') required String? contractAddress, @BigIntConverter() required Uint256 gas, @BigIntConverter() @JsonKey(name: 'gas_price') required Uint256 gasPrice, @BigIntConverter() @JsonKey(name: 'gas_used') required Uint256 gasUsed, @BigIntConverter() @JsonKey(name: 'effective_gas_price') required Uint256 effectiveGasPrice, @BigIntConverter() @JsonKey(name: 'cumulative_gas_used') required Uint256 cumulativeGasUsed, @BigIntConverter() @JsonKey(name: 'max_fee_per_gas') required Uint256? maxFeePerGas, @BigIntConverter() @JsonKey(name: 'max_priority_fee_per_gas') required Uint256? maxPriorityFeePerGas, @JsonKey(name: 'tx_fee') required num txFee, @JsonKey(name: 'saving_fee') required num? savingFee, @JsonKey(name: 'burnt_fee') required num? burntFee})
-
constfactory
-
Transaction.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blockNumber → num
-
read-onlyinherited
- blockTimestamp → DateTime
-
read-onlyinherited
- burntFee → num?
-
read-onlyinherited
- contractAddress → String?
-
read-onlyinherited
-
copyWith
→ $TransactionCopyWith<
Transaction> -
read-onlyinherited
- cumulativeGasUsed → Uint256
-
read-onlyinherited
- effectiveGasPrice → Uint256
-
read-onlyinherited
- fromAddress → String
-
read-onlyinherited
- gas → Uint256
-
read-onlyinherited
- gasPrice → Uint256
-
read-onlyinherited
- gasUsed → Uint256
-
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- input → String?
-
read-onlyinherited
- maxFeePerGas → Uint256?
-
read-onlyinherited
- maxPriorityFeePerGas → Uint256?
-
read-onlyinherited
- nonce → num
-
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- savingFee → num?
-
read-onlyinherited
- status → num
-
read-onlyinherited
- toAddress → String
-
read-onlyinherited
- transactionHash → String
-
read-onlyinherited
- transactionIndex → num
-
read-onlyinherited
- txFee → num
-
read-onlyinherited
- type → num
-
read-onlyinherited
- value → Uint256
-
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited