TimePoint class

Represents a precise point in time on the blockchain.

A TimePoint uniquely identifies when a multisig transaction was initiated by combining the block height and the extrinsic index within that block. This is required by Substrate's multisig pallet to track and manage pending transactions.

The timepoint is automatically captured when the first approval is submitted and must be provided with all subsequent approvals to identify the specific transaction.

Example:

// TimePoint is automatically included in MultisigStorage
final storage = await MultisigStorage.fetch(...);
if (storage != null) {
  print('Transaction initiated at block ${storage.when.height}, '
        'extrinsic ${storage.when.index}');
}

Constructors

TimePoint({required int height, required int index})
Creates a new TimePoint.
const
TimePoint.fromJson(Map<String, dynamic> json)
Creates a TimePoint from a JSON representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The block height (block number) when the transaction was initiated.
final
index int
The extrinsic index within the block.
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this TimePoint to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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