OperationIdentifier class
Uniquely identifies an operation within a transaction.
- Annotations
-
- @immutable
Constructors
- OperationIdentifier(int index, int? networkIndex)
-
const
-
OperationIdentifier.fromJson(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
The operation index is used to ensure each operation has a unique
identifier within a transaction. This index is only relative to the
transaction and NOT GLOBAL. The operations in each transaction should
start from index 0. To clarify, there may not be any notion of
an operation index in the blockchain being described.
final
- networkIndex → int?
-
Some blockchains specify an operation index that is essential for
client use. For example, Bitcoin uses a network_index to identify which
UTXO was used in a transaction. network_index should not be populated
if there is no notion of an operation index in a blockchain
(typically most account-based blockchains).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited