TxOptions class

Represents options for conducting a blockchain transaction, particularly focusing on the fee structure and potential retries.

The TxOptions class is a container for fee-related details and retry configurations that can influence how a transaction behaves on the blockchain. The class provides facilities for both JSON serialization and deserialization, making it versatile for API interactions.

Annotations
  • @freezed

Constructors

TxOptions({@Default(10) int feeIncrementPercentage, @Default(false) bool useNonceSequence, BigInt? customNonceKey, required bool withRetry})
Constructs a TxOptions instance.
factory
TxOptions.fromJson(Map<String, dynamic> json)
Constructs a TxOptions instance from its JSON representation.
factory

Properties

copyWith → $TxOptionsCopyWith<TxOptions>
no setterinherited
customNonceKey BigInt?
no setterinherited
feeIncrementPercentage int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useNonceSequence bool
no setterinherited
withRetry bool
no setterinherited

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