Transaction class

Implemented types

Constructors

Transaction({required Map params, dynamic messenger, TxStatus status = TxStatus.Initialised, bool toDS = false})

Properties

amount BigInt?
getter/setter pairoverride
code String?
getter/setter pairoverride
data String?
getter/setter pairoverride
gasLimit int?
getter/setter pairoverride
gasPrice BigInt?
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
messenger ↔ dynamic
getter/setter pair
nonce int?
getter/setter pairoverride
pubKey String?
getter/setter pairoverride
receipt Map<String, dynamic>?
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderAddress String
no setter
signature String?
getter/setter pairoverride
status TxStatus?
getter/setter pair
toAddr String?
getter/setter pairoverride
toDS bool
getter/setter pair
toPayload Map<String, dynamic>
no setter
transactionID String?
getter/setter pairoverride
txParams Map<String, dynamic>
no setter
version int?
getter/setter pairoverride

Methods

confirm({String? txHash, int? maxAttempts = 20, int? interval = 1000}) Future<Transaction>
getReceiptInfo(String blockExplorer) String
getVersion() int
isConfirmed() bool
isInitialised() bool
isPending() bool
isRejected() bool
map(Function mapFn) Transaction
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendTransaction() Future<TransactionSent?>
setParams(Map params) → void
setProvider(dynamic messenger) → void
setStatus(TxStatus status) Transaction
toString() String
A string representation of this object.
inherited
trackTx(String? txHash) Future<bool>

Operators

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

Static Methods

confirmTxn(Map params, dynamic messenger) → dynamic
reject(Map params, dynamic messenger) → dynamic