MultisigResponse class

Response object returned by multisig operations.

This class encapsulates the result of multisig operations, including the multisig account configuration, the call data being executed, and the transaction hash. It provides convenient methods to check the status of pending multisig transactions.

Example:

final response = await multisig.approveAsMulti(
  approverAddress: alice.address,
  signingCallback: alice.sign,
  callData: callData,
);

print('Transaction hash: ${response.txHash}');
print('Call hash: ${response.callHash}');

// Check status
final status = await response.getStatus(provider);
if (status != null) {
  print('Approvals: ${status.approvalCount}/${status.threshold}');
}
Annotations
  • @JsonSerializable.new()

Constructors

MultisigResponse({required MultisigAccount multisigAccount, required Uint8List callData, Uint8List? txHash})
Creates a new MultisigResponse.
MultisigResponse.fromJson(Map<String, dynamic> json)
Creates a MultisigResponse from a JSON representation.
factory

Properties

callData Uint8List
The SCALE-encoded call data for the transaction.
final
callHash Uint8List
Returns the blake2b256 hash of the call data.
no setter
hashCode int
The hash code for this object.
no setterinherited
multisigAccount MultisigAccount
The multisig account configuration for this transaction.
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
txHash Uint8List?
The transaction hash of the submitted approval/execution transaction.
final

Methods

getStatus(Provider provider, {String? signerAddress}) Future<MultisigStorageStatus?>
Fetches the current status of this multisig transaction from the blockchain.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this MultisigResponse to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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